Spaces:
Runtime error
Runtime error
File size: 538 Bytes
6eccaf2 e5dbd73 6eccaf2 e5dbd73 6eccaf2 e5dbd73 6eccaf2 fac7cb3 e5dbd73 6eccaf2 2b5a37e fac7cb3 2b5a37e 6eccaf2 fac7cb3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# 1. Use a minimal Python 3.9 image
FROM python:3.9-slim
# 2. Set working directory
WORKDIR /app
# 3. Copy all files
COPY . .
# 4. Install requirements
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# 5. Environment variables required by Hugging Face Spaces
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
ENV STREAMLIT_SERVER_ENABLE_CORS=false
ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
# 6. Launch streamlit correctly
CMD ["streamlit", "run", "app.py"]
|