We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30645f5 + 6f41db5 commit dd41652Copy full SHA for dd41652
1 file changed
Dockerfile
@@ -1,11 +1,11 @@
1
# syntax=docker/dockerfile:1
2
FROM python:3.11-slim AS build
3
COPY --from=ghcr.io/astral-sh/uv:0.8.21 /uv /uvx /bin/
4
-ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy
5
-COPY pyproject.toml spectre_utils/ /opt
+ENV UV_COMPILE_BYTECODE=1
+COPY pyproject.toml /opt/
6
COPY spectre_utils/ /opt/spectre_utils
7
-RUN cd /opt/ &&\
8
- uv sync --no-install-project --no-dev
+RUN uv pip install --system --no-cache -r /opt/pyproject.toml
9
FROM python:3.11-slim AS runtime
10
-ENV PATH="/opt/.venv/bin:$PATH"
+ENV PYTHONPATH="/opt"
+COPY --from=build /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
11
COPY --from=build /opt /opt
0 commit comments