File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,12 @@ RUN wget --progress=dot:giga -O uwsgi-${_UWSGI_VERSION}.tar.gz https://github.co
1515#
1616# Build poetry and export compiled dependecines as plain requirements.txt
1717#
18- FROM python:${PYTHON_VERSION}-slim-bookworm AS deps-compile
18+ FROM ghcr.io/astral-sh/uv:0.8.14-alpine AS deps-compile
1919
2020WORKDIR /
21- COPY poetry.lock pyproject.toml /
22-
23- # Version is taken from poetry.lock, assuming it is generated with up-to-date version of poetry
24- SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
25- RUN pip install --no-cache-dir poetry==$(cat poetry.lock |head -n1|awk -v FS='(Poetry |and)' '{print $2}' ) \
26- && poetry self add poetry-plugin-export \
27- && poetry export --format=requirements.txt --without-hashes -o requirements.txt
21+ COPY uv.lock pyproject.toml /
2822
23+ RUN uv export -o /requirements.txt
2924
3025#
3126# Base image with django dependecines
@@ -43,7 +38,7 @@ RUN apt-get update \
4338 && rm -rf /var/lib/apt/lists/*
4439
4540COPY --from=uwsgi-compile /uwsgi /usr/local/bin/
46- RUN pip install --no-cache-dir --upgrade pip==24 .2
41+ RUN pip install --no-cache-dir --upgrade pip==25 .2
4742COPY --from=deps-compile /requirements.txt /
4843RUN pip install --no-cache-dir --root-user-action=ignore -r /requirements.txt
4944
You can’t perform that action at this time.
0 commit comments