Skip to content

Bump python from 3.12-alpine3.19 to 3.13-alpine3.19 in /backend #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: "poetry"
cache-dependency-path: "./backend/poetry.lock"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
cache: "poetry"
cache-dependency-path: "./backend/poetry.lock"

Expand Down
8 changes: 5 additions & 3 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-alpine3.21
FROM python:3.13-alpine3.21

RUN apk --update add \
build-base \
Expand All @@ -25,7 +25,7 @@ WORKDIR /howtheyvote/backend
COPY pyproject.toml pyproject.toml
COPY poetry.toml poetry.toml
COPY poetry.lock poetry.lock
RUN poetry env use python3.12
RUN poetry env use python3.13
RUN poetry install

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

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

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