File tree Expand file tree Collapse file tree 2 files changed +11
-42
lines changed
Expand file tree Collapse file tree 2 files changed +11
-42
lines changed Original file line number Diff line number Diff line change 11# Build frontend
2- FROM node:12
2+ FROM node:20
33WORKDIR /usr/src/app
4- ARG GTAG_ID
5- ENV GTAG_ID $GTAG_ID
64ARG AUTH_TOKEN
75ENV AUTH_TOKEN $AUTH_TOKEN
86ENV NODE_ENV production
97ADD ./frontend/ /usr/src/app/frontend/
8+ RUN npm install -g pnpm
109RUN cd frontend \
11- && npm ci \
12- && echo $'NODE_ENV=production\n AUTH_TOKEN=' $AUTH_TOKEN' \n GTAG_ID=' $GTAG_ID >> .env \
13- && npm run build
10+ && pnpm install \
11+ && echo $'NODE_ENV=production\n AUTH_TOKEN=' $AUTH_TOKEN >> .env \
12+ && pnpm run build
1413
15- # Build Django
16- FROM python:3.8 -slim-buster
14+ # Build backend
15+ FROM python:3.12-rc -slim-buster
1716WORKDIR /usr/src/app
1817ARG ALLOWED_HOSTS
1918ENV ALLOWED_HOSTS $ALLOWED_HOSTS
@@ -24,7 +23,7 @@ RUN apt-get update && \
2423 apt-get install --no-install-recommends -y build-essential postgresql-common libpq-dev && \
2524 apt-get clean && rm -rf /var/lib/apt/lists/*
2625RUN pip install --upgrade pip
27- COPY ./requirements.txt /usr/src/app/requirements.txt
28- RUN pip install -r requirements.txt
29- COPY --from=0 /usr/src/app /usr/src/app
30- COPY . /usr/src/app/
26+ RUN pip install poetry
27+ COPY ./pyproject.toml /usr/src/app/pyproject.toml
28+ COPY ./poetry.lock /usr/src/app/poetry.lock
29+ RUN poetry install --no-dev
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments