Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# =============================================================================
# Stage 2: Build gpredomicspy (Rust → Python native module)
# =============================================================================
FROM python:3.11-slim@sha256:61e01f72680f86a5279ad510818ab7b2ee9f049822589d4e34e33e044360356c AS rust-builder
FROM python:3.15-slim@sha256:08a4c22c92b79ec821a7ad49768480039ee5b7accac3955228e75366e30abc8e AS rust-builder

ENV PIP_DEFAULT_TIMEOUT=300 \
PIP_RETRIES=10 \
Expand All @@ -46,7 +46,7 @@

# System packages and the Rust toolchain are separate layers, so a failed
# toolchain download does not redo the apt step.
RUN apt-get update && apt-get install -y --no-install-recommends \

Check failure on line 49 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
build-essential ca-certificates curl git pkg-config libssl-dev && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -58,7 +58,7 @@
ENV PATH="/root/.cargo/bin:${PATH}"

ARG MATURIN_VERSION=1.16.0
RUN --mount=type=cache,target=/root/.cache/pip \

Check failure on line 61 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`
pip install "maturin==${MATURIN_VERSION}"

ARG GPREDOMICS_REF
Expand Down Expand Up @@ -96,7 +96,7 @@
# =============================================================================
# Stage 3: Runtime — Python backend + frontend + gpredomicspy wheel
# =============================================================================
FROM python:3.11-slim@sha256:61e01f72680f86a5279ad510818ab7b2ee9f049822589d4e34e33e044360356c AS runtime
FROM python:3.15-slim@sha256:08a4c22c92b79ec821a7ad49768480039ee5b7accac3955228e75366e30abc8e AS runtime

ENV PIP_DEFAULT_TIMEOUT=300 \
PIP_RETRIES=10 \
Expand All @@ -107,7 +107,7 @@
MPLCONFIGDIR=/tmp/matplotlib \
XDG_CACHE_HOME=/tmp/.cache

RUN apt-get update && apt-get install -y --no-install-recommends \

Check failure on line 110 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3008 warning: Pin versions in apt get install. Instead of `apt-get install <package>` use `apt-get install <package>=<version>`
libgomp1 && \
rm -rf /var/lib/apt/lists/* && \
groupadd --gid 10001 app && \
Expand All @@ -118,11 +118,11 @@
# 1. Locked Python dependencies first (the big, rarely changing layer). Every
# file is checked against the SHA-256 recorded in the lock.
COPY backend/requirements.lock /tmp/requirements.lock
RUN --mount=type=cache,target=/root/.cache/pip \

Check failure on line 121 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`
pip install --require-hashes -r /tmp/requirements.lock && rm /tmp/requirements.lock

# 2. The engine wheel on top, without letting it pull unpinned dependencies.
RUN --mount=type=bind,from=rust-builder,source=/build/wheels,target=/tmp/wheels \

Check failure on line 125 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`
--mount=type=cache,target=/root/.cache/pip \
pip install --no-deps /tmp/wheels/*.whl

Expand Down Expand Up @@ -189,7 +189,7 @@
# =============================================================================
FROM runtime AS dev

RUN --mount=type=cache,target=/root/.cache/pip \

Check failure on line 192 in Dockerfile

View workflow job for this annotation

GitHub Actions / deploy-config

DL3042 warning: Avoid use of cache directory with pip. Use `pip install --no-cache-dir <package>`
pip install "pytest>=8,<10" "pytest-asyncio>=0.23" "pytest-cov>=5" "aiosqlite>=0.19" "ruff>=0.6" "pip-audit>=2.7"

# =============================================================================
Expand Down
Loading