2022-10-03 14:38:44 +03:00
|
|
|
FROM node:16.17.1-alpine
|
2018-05-29 19:01:36 +03:00
|
|
|
|
|
|
|
RUN addgroup -g 10001 app && \
|
|
|
|
adduser -D -G app -h /app -u 10001 app
|
2019-12-14 01:37:53 +03:00
|
|
|
RUN rm -rf /tmp/*
|
2018-05-29 19:01:36 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
USER app
|
|
|
|
|
|
|
|
COPY package.json package.json
|
|
|
|
COPY package-lock.json package-lock.json
|
|
|
|
|
2021-10-18 19:10:23 +03:00
|
|
|
RUN npm ci --audit=false && rm -rf ~app/.npm /tmp/*
|
2018-05-29 19:01:36 +03:00
|
|
|
|
2019-12-03 00:55:54 +03:00
|
|
|
COPY --chown=app:app . /app
|
2018-09-21 17:54:27 +03:00
|
|
|
|
2022-06-02 06:53:19 +03:00
|
|
|
COPY .env-dist ./.env
|
|
|
|
|
2022-06-01 06:46:33 +03:00
|
|
|
RUN npm run build
|
2018-09-21 17:54:27 +03:00
|
|
|
|
2022-08-17 18:24:39 +03:00
|
|
|
ARG SENTRY_RELEASE
|
|
|
|
ENV SENTRY_RELEASE=$SENTRY_RELEASE
|
|
|
|
|
2022-05-29 01:57:27 +03:00
|
|
|
CMD node server.js
|