22 строки
395 B
Docker
22 строки
395 B
Docker
FROM node:10-alpine
|
|
|
|
RUN addgroup -g 10001 app && \
|
|
adduser -D -G app -h /app -u 10001 app
|
|
RUN npm update -g
|
|
RUN rm -rf /tmp/*
|
|
|
|
WORKDIR /app
|
|
|
|
USER app
|
|
|
|
COPY package.json package.json
|
|
COPY package-lock.json package-lock.json
|
|
|
|
RUN npm install --production && rm -rf ~app/.npm /tmp/*
|
|
|
|
COPY --chown=app:app . /app
|
|
|
|
RUN npm run build:all
|
|
|
|
CMD NODE_ICU_DATA=./node_modules/full-icu node server.js
|