gpu-capacity / Dockerfile
rtrm's picture
rtrm HF Staff
feat: persist state in mounted HF bucket and skip startup sweep when state is fresh
5de1095 unverified
Raw
History Blame Contribute Delete
306 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY pyproject.toml README.md ./
COPY gpu_capacity ./gpu_capacity
RUN pip install --no-cache-dir .
RUN useradd -m -u 1000 user
USER user
ENV HOST=0.0.0.0 \
PORT=7860 \
AUTO_REFRESH_MINUTES=15 \
STATE_FILE=/data/state.json
EXPOSE 7860
CMD ["gpu-capacity"]