Skip to content

Commit 7c09e5c

Browse files
committed
Update Python version in Dockerfile
1 parent 7a7836e commit 7c09e5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backend/Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ WORKDIR /howtheyvote/backend
2525
COPY pyproject.toml pyproject.toml
2626
COPY poetry.toml poetry.toml
2727
COPY poetry.lock poetry.lock
28-
RUN poetry env use python3.12
28+
RUN poetry env use python3.13
2929
RUN poetry install
3030

3131
COPY . .
@@ -37,7 +37,9 @@ ENV TZ=UTC
3737
ENV ALEMBIC_CONFIG=./howtheyvote/alembic/alembic.ini
3838
ENV PATH="/howtheyvote/backend/.venv/bin:$PATH"
3939

40-
# Make Python system packages (such as Xapian) accessible
40+
# Make Python system packages (such as Xapian) accessible. This has to be the same
41+
# as the Python version that can be installed via the Alpine package manager. At
42+
# the time of writing, this is 3.12 on Alpine 3.21.
4143
ENV PYTHONPATH=/usr/lib/python3.12/site-packages
4244

4345
CMD gunicorn -b [::]:5000 --workers=5 --forwarded-allow-ips=* howtheyvote.wsgi:app

0 commit comments

Comments
 (0)