2017-06-23 02:20:41 +02:00
|
|
|
FROM node:8-alpine
|
2017-06-09 01:11:17 +02:00
|
|
|
|
2017-06-23 02:20:41 +02:00
|
|
|
RUN adduser -S app
|
2017-06-09 01:11:17 +02:00
|
|
|
COPY . /app
|
2017-06-23 02:20:41 +02:00
|
|
|
RUN chown -R app /app
|
|
|
|
USER app
|
2017-06-09 01:11:17 +02:00
|
|
|
WORKDIR /app
|
|
|
|
RUN mkdir static
|
|
|
|
RUN npm install
|
|
|
|
|
2017-06-21 00:48:36 +02:00
|
|
|
ENV PORT=1443
|
|
|
|
EXPOSE $PORT
|
|
|
|
|
2017-06-09 01:11:17 +02:00
|
|
|
CMD ["npm", "start"]
|