-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathDockerfile.experiment
More file actions
24 lines (20 loc) · 887 Bytes
/
Copy pathDockerfile.experiment
File metadata and controls
24 lines (20 loc) · 887 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
FROM python:3.11-slim-bookworm
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates git openssh-client && \
rm -rf /var/lib/apt/lists/*
RUN groupadd --system paperforge && useradd --system --gid paperforge --create-home paperforge
WORKDIR /opt/paperforge
COPY requirements-core.txt requirements-experiment.txt /opt/paperforge/
RUN python -m pip install -U pip setuptools wheel && \
python -m pip install -r /opt/paperforge/requirements-experiment.txt
COPY . /opt/paperforge
RUN python -m pip install --no-deps /opt/paperforge && \
mkdir -p /workspace && chown -R paperforge:paperforge /workspace /opt/paperforge
USER paperforge
WORKDIR /workspace
ENTRYPOINT ["paperforge"]
CMD ["preflight", "--workspace", "/workspace"]