Spaces:
Paused
Paused
File size: 1,162 Bytes
bc35a94 | 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 python:3.13-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
bubblewrap \
proot \
fuse-overlayfs \
procps \
iputils-ping \
findutils \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# python slim images often install the interpreter under /usr/local/bin only.
# task stubs use `#!/usr/bin/env python3`, so expose a stable /usr/bin/python3.
RUN set -eux; \
if [ -x /usr/local/bin/python3 ] && [ ! -e /usr/bin/python3 ]; then \
ln -sf /usr/local/bin/python3 /usr/bin/python3; \
fi
COPY pyproject.toml README.md ./
COPY __init__.py client.py inference.py models.py hpc_gym.py openenv.yaml ./
COPY server ./server
COPY sysadmin_env ./sysadmin_env
COPY assets ./assets
COPY bench ./bench
COPY training ./training
COPY eval ./eval
COPY tools ./tools
COPY docs ./docs
COPY Makefile ./Makefile
RUN python -m pip install --upgrade pip setuptools wheel \
&& python -m pip install .
EXPOSE 8000
CMD ["server", "--host", "0.0.0.0", "--port", "8000"]
|