Skip to content

Commit dd41652

Browse files
Merge branch 'main' of github.com:ocean-spectre/spectre-150-ensembles
2 parents 30645f5 + 6f41db5 commit dd41652

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# syntax=docker/dockerfile:1
22
FROM python:3.11-slim AS build
33
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
4+
ENV UV_COMPILE_BYTECODE=1
5+
COPY pyproject.toml /opt/
66
COPY spectre_utils/ /opt/spectre_utils
7-
RUN cd /opt/ &&\
8-
uv sync --no-install-project --no-dev
7+
RUN uv pip install --system --no-cache -r /opt/pyproject.toml
98
FROM python:3.11-slim AS runtime
10-
ENV PATH="/opt/.venv/bin:$PATH"
9+
ENV PYTHONPATH="/opt"
10+
COPY --from=build /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
1111
COPY --from=build /opt /opt

0 commit comments

Comments
 (0)