-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (35 loc) · 1.44 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (35 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM commaregistry.azurecr.io/python3.12-base:latest
ARG SLURM_VERSION=25.11.2-1
ARG SLURM_RELEASE=25.11.2-1%2Bgpu
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
bash-completion \
ca-certificates \
curl \
libdbus-1-dev \
libb64-0d \
libjwt2 \
librdkafka1 \
libfreeipmi17 \
libipmimonitoring6 \
libhdf5-dev \
liblua5.3-dev \
libhwloc-dev \
libyaml-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& curl -L -o slurm-smd_${SLURM_VERSION}_amd64.deb "https://github.com/commaai/slurm-builder/releases/download/${SLURM_RELEASE}/slurm-smd_${SLURM_VERSION}_amd64.deb" \
&& curl -L -o slurm-smd-client_${SLURM_VERSION}_amd64.deb "https://github.com/commaai/slurm-builder/releases/download/${SLURM_RELEASE}/slurm-smd-client_${SLURM_VERSION}_amd64.deb" \
&& dpkg -i slurm-smd_${SLURM_VERSION}_amd64.deb slurm-smd-client_${SLURM_VERSION}_amd64.deb || apt-get install -f -y \
&& rm slurm-smd_${SLURM_VERSION}_amd64.deb slurm-smd-client_${SLURM_VERSION}_amd64.deb \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
RUN id -u batman >/dev/null 2>&1 || useradd --create-home --shell /bin/bash batman
WORKDIR /app
COPY pyproject.toml uv.lock README.md ./
COPY reporterv2 reporterv2
RUN uv sync --frozen
ENV REPORTERV2_HOST=/tmp/reporterv2-store
ENV REPORTERV2_DATA=/tmp/reporterv2-index
EXPOSE 8802
CMD ["uv", "run", "reporterv2-server"]