Spaces:
Sleeping
Sleeping
File size: 455 Bytes
0071b29 c565904 84efc0d 0071b29 84efc0d 0071b29 c565904 84efc0d 0071b29 84efc0d 0071b29 c565904 3bd6e90 c565904 84efc0d c565904 84efc0d 0071b29 c565904 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Use Python 3.9
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy files
COPY . .
# Install dependencies
RUN pip3 install -r requirements.txt
# Create user
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
# Run Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|