blurts-server/Dockerfile

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

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

FROM node:20.9-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
# Install Python
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 py3-pip && ln -sf python3 /usr/bin/python
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/*
COPY .env ./.env
ARG NEXT_PUBLIC_GA4_DEBUG_MODE
ENV NEXT_PUBLIC_GA4_DEBUG_MODE=false
2023-08-01 01:36:21 +03:00
ARG S3_BUCKET
ENV S3_BUCKET=$S3_BUCKET
RUN GLEAN_PYTHON=python GLEAN_PIP=pip npm run build
2022-06-02 06:53:19 +03:00
ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
2024-05-16 07:14:24 +03:00
CMD ["npm", "start"]