Update requirements
This commit is contained in:
parent
2790e9c82e
commit
2f22e635b3
12 changed files with 55 additions and 45 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# stage 1
|
||||
FROM python:3.9-bullseye as backend
|
||||
FROM python:3.11-bookworm as backend
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
vim \
|
||||
|
|
@ -18,7 +18,7 @@ RUN pip install -r requirements/base.txt
|
|||
|
||||
|
||||
# stage 2
|
||||
FROM node:16-bullseye AS frontend-build
|
||||
FROM node:lts-bookworm AS frontend-build
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
git \
|
||||
|
|
@ -36,7 +36,7 @@ RUN npm run build
|
|||
|
||||
|
||||
# stage 3
|
||||
FROM python:3.9-bullseye as production
|
||||
FROM python:3.11-bookworm as production
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
postgresql-client \
|
||||
|
|
@ -51,7 +51,7 @@ RUN mkdir /app/logs
|
|||
RUN mkdir /app/media
|
||||
RUN mkdir /app/bin
|
||||
|
||||
COPY --from=backend /usr/local/lib/python3.9 /usr/local/lib/python3.9
|
||||
COPY --from=backend /usr/local/lib/python3.11 /usr/local/lib/python3.11
|
||||
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
||||
|
||||
COPY ./bin/docker-entrypoint.sh /app/bin/docker-entrypoint.sh
|
||||
|
|
@ -81,7 +81,7 @@ RUN python src/manage.py collectstatic --noinput
|
|||
|
||||
|
||||
# (optional) stage 4
|
||||
FROM python:3.9-bullseye as development
|
||||
FROM python:3.11-bookworm as development
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
vim \
|
||||
|
|
@ -96,7 +96,7 @@ RUN mkdir /app/bin
|
|||
|
||||
COPY ./requirements /app/requirements
|
||||
COPY ./bin/docker-entrypoint.sh /app/bin/docker-entrypoint.sh
|
||||
COPY --from=backend /usr/local/lib/python3.9 /usr/local/lib/python3.9
|
||||
COPY --from=backend /usr/local/lib/python3.11 /usr/local/lib/python3.11
|
||||
COPY --from=backend /usr/local/bin/celery /usr/local/bin/celery
|
||||
COPY --from=backend /app/src/ /app/src/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue