2018-08-02 21:24:36 +02:00
|
|
|
FROM node:10-alpine
|
2017-06-09 01:11:17 +02:00
|
|
|
|
2017-07-20 17:36:05 +02:00
|
|
|
RUN apk add --no-cache git
|
2017-06-23 22:19:35 +02:00
|
|
|
RUN addgroup -S -g 10001 app && adduser -S -D -G app -u 10001 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
|
2017-06-24 02:55:39 +02:00
|
|
|
RUN npm install --production && npm cache clean --force
|
2017-06-09 01:11:17 +02:00
|
|
|
|
2017-06-21 00:48:36 +02:00
|
|
|
ENV PORT=1443
|
|
|
|
EXPOSE $PORT
|
|
|
|
|
2017-08-24 23:54:02 +02:00
|
|
|
CMD ["npm", "run", "prod"]
|