File size: 424 Bytes
8db761b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Hugging Face Docker Space for the custom StudyHub frontend.
# README metadata for the Space must include:  sdk: docker   and   app_port: 7860
FROM python:3.11-slim

WORKDIR /app
ENV HF_HOME=/app/.cache/huggingface \
    PORT=7860 \
    PYTHONUNBUFFERED=1

COPY requirements-web.txt .
RUN pip install --no-cache-dir -r requirements-web.txt

COPY studyhub ./studyhub

EXPOSE 7860
CMD ["python", "-m", "studyhub.web.server"]