Skip to content

Commit

Permalink
Downgrading docker image to python 3.10
Browse files Browse the repository at this point in the history
Until wrapt issue with python 3.11 is resolved (GrahamDumpleton/wrapt#203) and merged, we will go with Python 3.10
  • Loading branch information
simcax committed Jan 14, 2022
1 parent 2a79f40 commit 16c91c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.11.0a3-slim-bullseye
FROM python:3.10.1-slim-bullseye
LABEL maintainer="carsten@skov.codes"
RUN apt update
RUN apt install -y gunicorn3
RUN apt install -y gunicorn3 gcc python3-dev libpq-dev
# Upgrade pip
RUN python3 -m pip install --upgrade pip
RUN python -m venv /venv
COPY ./requirements.txt /
RUN . venv/bin/activate && python -m pip install psycopg2 && python -m pip install -r requirements.txt
RUN . venv/bin/activate && python -m pip install psycopg[c] && python -m pip install -r requirements.txt
COPY ./app /app
ENV FLASK_APP=app
ENV VIRTUAL_ENV=/venv
Expand Down

0 comments on commit 16c91c2

Please sign in to comment.