forked from vincentbernat/dashkiosk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 742 Bytes
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
FROM node:10
RUN npm install -g bower grunt-cli
RUN apt-get -qq update && apt-get install -qq gifsicle libjpeg-progs optipng libavahi-compat-libdnssd-dev
WORKDIR /dashkiosk
COPY . /dashkiosk/
ENV NPM_CONFIG_LOGLEVEL warn
RUN rm -rf node_modules build && \
npm install && \
grunt && \
cd dist && \
npm install --production && \
rm -rf ../node_modules ../build && \
npm cache clean --force
RUN chmod +x /dashkiosk/entrypoint.sh
# We use SQLite by default. If you want to keep the database between
# runs, don't forget to provide a volume for /database.
VOLUME /database
ENV NODE_ENV production
ENV port 8080
ENV db__options__storage /database/dashkiosk.sqlite
ENTRYPOINT [ "/dashkiosk/entrypoint.sh" ]
EXPOSE 8080