anim-user-study / Dockerfile
Kakituken's picture
user study site
5c388e4 verified
Raw History Blame Contribute Delete
457 Bytes
# Hugging Face Space (Docker SDK) / any container host. Data lives in /app/data (ephemeral on a free Space:
# set HF_TOKEN + BACKUP_REPO secrets so it is restored on start and backed up to a private dataset).
FROM python:3.11-slim
RUN pip install --no-cache-dir huggingface_hub==0.36.2
WORKDIR /app
COPY server.py ./
COPY static ./static
RUN mkdir -p /app/data && chmod 777 /app/data
ENV PORT=7860
EXPOSE 7860
CMD ["python", "server.py", "--port", "7860"]