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 | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV HOME=/home/user | |
WORKDIR $HOME/app | |
ENV PATH="$HOME/.local/bin:${PATH}" | |
# Copy application files | |
COPY --chown=user requirements.txt $HOME/app/ | |
COPY --chown=user app.py $HOME/app/ | |
COPY --chown=user ./src/ $HOME/app/src/ | |
RUN pip install --user --upgrade pip && pip install --user -r requirements.txt | |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |