-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.template
35 lines (26 loc) · 748 Bytes
/
Dockerfile.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM resin/%%RESIN_MACHINE_NAME%%-node:4.3
MAINTAINER Craig Mulligan <[email protected]>
ENV INITSYSTEM on
ENV DEBIAN_FRONTEND noninteractive
# native deps for electron
RUN apt-get update && apt-get install -yq --no-install-recommends \
xserver-xorg-core \
xorg \
libgtk2.0-0 \
libnotify4 \
libgconf2-4 \
libnss3 \
libasound2 \
matchbox && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# for caching purposes
COPY package.json ./
# install deps
RUN JOBS=MAX npm install --unsafe-perm && npm cache clean
# copy all files for caching purposes
COPY . ./
# build assets
RUN npm run build
CMD ["xinit", "/usr/src/app/launch_app.sh", "--kiosk", "--", "-nocursor"]