Use Python 3.11 with Poetry

This commit is contained in:
FatherInire 2022-11-04 01:09:29 +11:00 committed by GitHub
parent 7970b17574
commit 9519e7a744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -1,9 +1,8 @@
FROM ubuntu:22.04
FROM python:3.11
ARG DEBIAN_FRONTEND=noninteractive
# python3-cachecontrol is currently required due to a dependency error in ubuntu 22.04's python3-poetry package
RUN apt update && apt -y upgrade && apt install -y supervisor python3-poetry ffmpeg python3-cachecontrol
RUN apt update && apt -y upgrade && apt install -y supervisor ffmpeg
COPY supervisord.conf /etc/supervisord.conf
@ -11,6 +10,7 @@ COPY supervisord.conf /etc/supervisord.conf
WORKDIR /service
COPY pyproject.toml .
COPY poetry.lock .
RUN pip install 'poetry==1.2.2'
RUN poetry config virtualenvs.create false && poetry install
RUN mkdir /images && mkdir /songs
@ -18,3 +18,4 @@ RUN mkdir /images && mkdir /songs
EXPOSE 80/tcp
CMD [ "/usr/bin/supervisord", "-c", "/etc/supervisord.conf" ]

2
poetry.lock generated
View file

@ -1018,7 +1018,7 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"]
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
python-versions = "^3.11"
content-hash = "2a0f266aae2676e4fb10a7cd37f657ca14bfd2c0db21f0e0cd262691ecf429ee"
[metadata.files]

View file

@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
license = "AGPL"
[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
beautifulsoup4 = "*"
bleach = "4.1.0"
Flask = "*"