Skip to content

Commit

Permalink
DOCKER: Pin alpine build to Python 3.10
Browse files Browse the repository at this point in the history
Currently, multidict and yarn fail to build from source and no 3.11 wheels are available.
  • Loading branch information
mgxd committed Dec 2, 2022
1 parent 4cfd796 commit afa8575
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,11 +1,11 @@
FROM python:slim AS src
RUN pip install build
FROM python:3.10-slim AS src
RUN pip install -U build pip
RUN apt-get update && \
apt-get install -y --no-install-recommends git
COPY . /src/migas-server
RUN python -m build /src/migas-server

FROM python:slim
FROM python:3.10-slim
COPY --from=src /src/migas-server/dist/*.whl .
ENV YARL_NO_EXTENSIONS=1 \
MULTIDICT_NO_EXTENSIONS=1
Expand Down

0 comments on commit afa8575

Please sign in to comment.