2019-12-02 22:53:41 +03:00
|
|
|
FROM node:10-alpine
|
2018-05-29 19:01:36 +03:00
|
|
|
|
|
|
|
RUN addgroup -g 10001 app && \
|
|
|
|
adduser -D -G app -h /app -u 10001 app
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
USER app
|
|
|
|
|
|
|
|
COPY package.json package.json
|
|
|
|
COPY package-lock.json package-lock.json
|
|
|
|
|
|
|
|
RUN npm install && rm -rf ~app/.npm /tmp/*
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
USER root
|
2018-09-21 17:54:27 +03:00
|
|
|
|
|
|
|
RUN npm run build:all
|
|
|
|
|
2018-05-29 19:01:36 +03:00
|
|
|
RUN chown app:app /app
|
|
|
|
|
|
|
|
USER app
|
2018-10-22 23:28:14 +03:00
|
|
|
CMD NODE_ICU_DATA=./node_modules/full-icu node server.js
|