etcher pro dockerfile wip

This commit is contained in:
Alexis Svinartchouk 2019-09-20 17:50:56 +02:00
parent 64c4863c8a
commit f9520085fa
3 changed files with 20 additions and 2 deletions

View File

@ -1,2 +0,0 @@
*
!requirements.txt

1
.gitattributes vendored
View File

@ -6,6 +6,7 @@
*.scss text eol=lf
# Text files
*.Dockerfile text
Dockerfile* text
.dockerignore text
.editorconfig text

19
etcher-pro.Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM balenalib/amd64-debian-node:12.6-buster-build as builder
RUN \
apt-get update \
&& \
apt-get install \
build-essential \
jq \
&& \
apt-get clean
WORKDIR /usr/src/app
ADD . ./
RUN npm config set unsafe-perm true
RUN npm config set arch armv7l
ENV npm_config_arch=armv7l
RUN make electron-develop
FROM alexisresinio/balena-electronjs-amd64
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app /usr/src/app