etcher pro dockerfile wip

This commit is contained in:
Alexis Svinartchouk 2019-09-20 17:50:56 +02:00
parent c54f2e08c2
commit 4909766cd8
2 changed files with 19 additions and 2 deletions

View File

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

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