File size: 496 Bytes
77f3eaf
748e8a4
8b075ef
748e8a4
56b0032
974ec25
6343aa6
8b075ef
6343aa6
974ec25
 
 
 
 
8b075ef
89d4f0b
748e8a4
 
 
 
8b075ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12

# Add user
RUN useradd -m -u 1000 user
WORKDIR /app

COPY --chown=user . /app
# Install system dependencies and requirements
RUN pip install --no-cache-dir -r /app/requirements.txt && \
    huggingface-cli login --token $HF_TOKEN

USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH

EXPOSE 7860
CMD streamlit run app.py \
    --server.headless true \
    --server.enableCORS false \
    --server.enableXsrfProtection false \
    --server.fileWatcherType none \