Use Python 3.11 with Poetry
This commit is contained in:
parent
7970b17574
commit
9519e7a744
3 changed files with 6 additions and 5 deletions
|
@ -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
2
poetry.lock
generated
|
@ -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]
|
||||
|
|
|
@ -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 = "*"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue