FROM python:3.9-slim | |
ENV PYTHONDONTWRITEBYTECODE=1 | |
ENV PYTHONUNBUFFERED=1 | |
WORKDIR /app | |
COPY . . | |
RUN pip install --no-cache-dir -r requirements.txt | |
RUN pip install python-dotenv | |
EXPOSE 7860 | |
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1 | |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |