Skip to content

Commit 509f511

Browse files
committed
Bumping up to Python 3.10
1 parent c2eceae commit 509f511

File tree

3 files changed

+303
-176
lines changed

3 files changed

+303
-176
lines changed

django/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9-slim-bullseye
1+
FROM python:3.10-slim-bookworm
22
LABEL maintainer="<keithamoss@gmail.com>"
33

44
# Python
@@ -53,10 +53,8 @@ WORKDIR /app
5353

5454
# Python deps management
5555
RUN apt-get install -y curl
56-
# Pin Poetry to 2.2.1 because Poetry 2.3.0+ dropped support for Python 3.9
57-
# This Dockerfile uses python:3.9-slim-bullseye, so we cannot use Poetry 2.3.0 or later
58-
# To upgrade Poetry beyond 2.2.x, first upgrade the base image to Python 3.10+
59-
RUN curl -sSL https://install.python-poetry.org | python - --version 2.2.1
56+
# Using latest Poetry since Python 3.10+ supports modern Poetry versions
57+
RUN curl -sSL https://install.python-poetry.org | python -
6058
# Even though Dependabot takes care of updating packages for us, we still need this for poetry to install without complaining about some packages "not being available at [version]". Whatever!
6159
RUN poetry update
6260
RUN poetry install --only main

0 commit comments

Comments
 (0)