sandbox-1772bcd1 / Dockerfile
advancepsilon's picture
Setup sandbox server
6766a4c verified
raw
history blame contribute delete
662 Bytes
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
RUN apt-get update && \
apt-get install -y \
bash git git-lfs wget curl procps \
htop vim nano jq tmux \
build-essential && \
rm -rf /var/lib/apt/lists/*
RUN uv pip install --system fastapi uvicorn python-multipart
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PIP_USER=1 \
HF_HUB_DISABLE_PROGRESS_BARS=1 \
TQDM_DISABLE=1 \
HF_HUB_ENABLE_HF_TRANSFER=1 \
UV_NO_PROGRESS=1 \
PYTHONWARNINGS=ignore::DeprecationWarning
WORKDIR /app
COPY --chown=user . /app
EXPOSE 7860
CMD ["python", "sandbox_server.py"]