forked from cam-inc/viron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (30 loc) · 900 Bytes
/
Dockerfile
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
FROM node:9
RUN mkdir -p /viron
RUN chown -R node:node /viron
ENV HOME /viron
USER node
WORKDIR $HOME
# Setup project
ADD package.json /viron/package.json
ADD package-lock.json /viron/package-lock.json
#RUN npm install --production --no-progress && npm cache clean
RUN npm install
# Copy source files
ADD package.json /viron/package.json
ADD .editorconfig /viron/.editorconfig
ADD .eslintrc.js /viron/.eslintrc.js
ADD .stylefmtrc /viron/.stylefmtrc
ADD .stylelintrc /viron/.stylelintrc
ADD package-lock.json /viron/package-lock.json
ADD package.json /viron/package.json
ADD postcss.config.js /viron/postcss.config.js
ADD public /viron/public
ADD rollup.base.config.js /viron/rollup.base.config.js
ADD rollup.config.js /viron/rollup.config.js
ADD rollup.local.config.js /viron/rollup.local.config.js
ADD src /viron/src
ADD task /viron/task
ADD test /viron/test
EXPOSE 8080
USER root
CMD npm start