Use Makefile to generate requirements

This commit is contained in:
Sonny Bakker 2023-06-26 20:21:00 +02:00
parent 82a7176629
commit 720f6fdb78
10 changed files with 1188 additions and 175 deletions

View file

@ -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 \
@ -17,7 +17,7 @@ RUN pip install -r requirements/production.txt
# stage 2
FROM node:current-bullseye AS frontend-build
FROM node:current-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 \
@ -80,7 +80,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 \