File size: 501 Bytes
8b075ef
748e8a4
8b075ef
748e8a4
 
8b075ef
 
 
748e8a4
7fde49d
8b075ef
a7baf36
8b075ef
89d4f0b
748e8a4
 
 
 
8b075ef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:latest

# Add user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
    PATH=/home/user/.local/bin:$PATH
# Set default to user's home directory
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
# Install system dependencies and requirements
RUN pip install --no-cache-dir -r $HOME/app/requirements.txt

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