2017-06-23 00:20:41 +00:00
|
|
|
FROM node:8-alpine
|
2017-06-08 23:11:17 +00:00
|
|
|
|
2017-06-23 20:19:35 +00:00
|
|
|
RUN addgroup -S -g 10001 app && adduser -S -D -G app -u 10001 app
|
2017-06-08 23:11:17 +00:00
|
|
|
COPY . /app
|
2017-06-23 00:20:41 +00:00
|
|
|
RUN chown -R app /app
|
|
|
|
USER app
|
2017-06-08 23:11:17 +00:00
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir static
|
2017-06-23 20:19:35 +00:00
|
|
|
RUN npm install && npm cache clean --force
|
2017-06-08 23:11:17 +00:00
|
|
|
|
2017-06-20 22:48:36 +00:00
|
|
|
ENV PORT=1443
|
|
|
|
EXPOSE $PORT
|
|
|
|
|
2017-06-08 23:11:17 +00:00
|
|
|
CMD ["npm", "start"]
|