blurts-server/Dockerfile

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

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

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
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
2022-06-02 06:53:19 +03:00
COPY .env-dist ./.env
RUN npm run build
ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
CMD node server.js