Spaces:
Sleeping
Sleeping
File size: 561 Bytes
5338ec3 51d35d6 5338ec3 51d35d6 5338ec3 51d35d6 5338ec3 51d35d6 5338ec3 51d35d6 |
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 26 |
FROM python:3.9-slim
RUN useradd -m -u 1000 user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
USER user
WORKDIR $HOME/app
RUN mkdir -p $HOME/.streamlit
COPY --chown=user requirements.txt ./
COPY --chown=user src/ ./src/
RUN pip3 install --no-cache-dir -r requirements.txt
RUN echo -e "[browser]\ngatherUsageStats = false" > $HOME/.streamlit/config.toml
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|