File size: 680 Bytes
f143c14
25c2194
 
 
 
f143c14
25c2194
 
 
 
 
 
f143c14
25c2194
 
f143c14
25c2194
f143c14
25c2194
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.11-slim
 
# Non-root user (required by Hugging Face Spaces) and the folder for the transcript database.
# Enable "Persistent Storage" on the Space so /data survives restarts.
RUN useradd -m -u 1000 user && mkdir -p /data && chown user /data
USER user
 
ENV PATH=/home/user/.local/bin:$PATH \
    INTERVIEWS_DB_PATH=/data/interviews.db
 
WORKDIR /home/user/app
 
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
 
COPY --chown=user . .
 
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]