25 строки
378 B
Docker
25 строки
378 B
Docker
FROM node:8.11.2-alpine
|
|
|
|
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
|
|
|
|
RUN npm run build:all
|
|
|
|
RUN chown app:app /app
|
|
|
|
USER app
|
|
CMD NODE_ICU_DATA=./node_modules/full-icu node server.js
|