build: explicitly use python 3.10

pull/1/head
hanchchch 1 year ago
parent b3892007b3
commit c3ba6b5f3a

@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN \
apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get install -y python3.10 python3-pip curl && \
curl -sSL https://install.python-poetry.org | python3 -
RUN apt-get install uvicorn -y
@ -14,8 +16,10 @@ ENV PATH "/root/.local/bin:$PATH"
COPY pyproject.toml .
COPY poetry.lock .
RUN poetry env use 3.10
RUN poetry install --with tools
COPY . .
ENTRYPOINT ["sleep", "infinity"]

Loading…
Cancel
Save