Spaces:
Running
Running
FROM python:3.10-slim | |
RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var/lib/apt/lists/* | |
WORKDIR /app | |
# Create non-root user and switch to it | |
RUN useradd -m -u 1000 user && chown -R user:user /app | |
USER user | |
# Copy application files and install dependencies | |
COPY --chown=user:user . /app | |
RUN pip install --upgrade pip && pip install --user -r requirements.txt | |
#EXPOSE 8501 | |
#I commented out EXPOSE 8501, and gave 7860 in CMD, since it works. Funny? The building of Streamlit never stops with 8501!!! | |
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |