Skip to content

Commit 16c91c2

Browse files
committed
Downgrading docker image to python 3.10
Until wrapt issue with python 3.11 is resolved (GrahamDumpleton/wrapt#203) and merged, we will go with Python 3.10
1 parent 2a79f40 commit 16c91c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM python:3.11.0a3-slim-bullseye
1+
FROM python:3.10.1-slim-bullseye
22
LABEL maintainer="carsten@skov.codes"
33
RUN apt update
4-
RUN apt install -y gunicorn3
4+
RUN apt install -y gunicorn3 gcc python3-dev libpq-dev
55
# Upgrade pip
66
RUN python3 -m pip install --upgrade pip
77
RUN python -m venv /venv
88
COPY ./requirements.txt /
9-
RUN . venv/bin/activate && python -m pip install psycopg2 && python -m pip install -r requirements.txt
9+
RUN . venv/bin/activate && python -m pip install psycopg[c] && python -m pip install -r requirements.txt
1010
COPY ./app /app
1111
ENV FLASK_APP=app
1212
ENV VIRTUAL_ENV=/venv

0 commit comments

Comments
 (0)