-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 1.44 KB
/
Copy pathDockerfile
File metadata and controls
27 lines (21 loc) · 1.44 KB
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
# ── Base image ────────────────────────────────────────────────────────────────
# rapidsai/base ships with cuDF, RMM, and conda pre-configured.
# Adjust the tag to match your CUDA version and desired RAPIDS release.
# Tag list: https://hub.docker.com/r/rapidsai/base/tags
ARG RAPIDS_IMAGE=rapidsai/base:26.06a-cuda13-py3.13-amd64
FROM ${RAPIDS_IMAGE}
SHELL ["/bin/bash", "-c"]
USER root
WORKDIR /app
# ── cuOpt routing library ─────────────────────────────────────────────────────
# Pin cuopt to the same RAPIDS release cycle as the base image.
# To upgrade: bump both RAPIDS_IMAGE tag and the cuopt version together.
RUN mamba install -y -c rapidsai -c nvidia -c conda-forge "cuopt=26.06.*" \
&& mamba clean -a -y
# ── Python API dependencies ───────────────────────────────────────────────────
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# ── Application code ──────────────────────────────────────────────────────────
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]