Spaces:
Running
Running
File size: 306 Bytes
9f72def 5de1095 9f72def | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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"]
|