-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (19 loc) · 786 Bytes
/
Dockerfile
File metadata and controls
32 lines (19 loc) · 786 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
30
31
32
FROM python:3.13-slim-trixie
# Make a non-privledged user to run the pipeline
RUN mkdir /home/archive && /usr/sbin/groupadd -g 10000 "domainusers" \
&& /usr/sbin/useradd -g 10000 -d /home/archive -M -N -u 10087 archive \
&& chown -R archive:domainusers /home/archive
RUN apt-get -y update && apt-get -y install gcc procps git && \
apt-get autoclean && \
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
ENV PATH="/lco/banzai/.venv/bin:$PATH"
WORKDIR /lco/banzai
COPY pyproject.toml uv.lock ./
RUN uv sync --locked --no-install-project --no-cache
COPY . .
RUN uv sync --locked --no-cache
RUN cp /lco/banzai/pytest.ini /home/archive/pytest.ini
USER archive
ENV HOME=/home/archive
WORKDIR /home/archive