blurts-server/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 строки
413 B
Docker
Исходник Обычный вид История

2022-12-06 10:55:34 +03:00
FROM node:18.12-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
2019-12-03 00:55:54 +03:00
COPY --chown=app:app . /app
2023-01-23 23:29:49 +03:00
RUN npm ci --audit=false && rm -rf ~app/.npm /tmp/*
2022-06-02 06:53:19 +03:00
COPY .env-dist ./.env
RUN npm run build
2022-06-02 06:53:19 +03:00
ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
CMD ["npm", "start"]