-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 783 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (20 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ghcr.io/astral-sh/uv:python3.13-alpine AS wheel-builder
RUN apk add --no-cache git
COPY . /app
RUN uv build --wheel /app
FROM continuumio/miniconda3:latest AS conda-env
RUN conda install -c leej3 afni-minimal && \
conda clean -afy
# Stage 3: Final runtime environment
FROM python:3.13-slim AS runtime
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
COPY --from=conda-env /opt/conda /opt/conda
WORKDIR /app
COPY pyproject.toml uv.lock .
COPY tools/ ./tools/
COPY fitlins/ ./fitlins/
COPY --from=wheel-builder /app/dist/*.whl /tmp/
RUN --mount=type=cache,target=/root/.cache/uv uv sync --locked --extra test
RUN --mount=type=cache,target=/root/.cache/uv uv pip install /tmp/*.whl
ENV PATH="/app/.venv/bin:/opt/conda/bin:$PATH"
ENTRYPOINT ["fitlins"]