Spaces:
Sleeping
Sleeping
File size: 711 Bytes
72c21cc eca472c 81354c4 eca472c 81354c4 72c21cc 81354c4 72c21cc 81354c4 eca472c 81354c4 72c21cc eca472c 81354c4 72c21cc 81354c4 eca472c 81354c4 72c21cc 81354c4 |
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 27 28 |
# 1. Use Python 3.10 (Stable for AI)
FROM python:3.10-slim
# 2. Set working directory
WORKDIR /app
# 3. Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# 4. Copy requirements (assuming it's in the root folder)
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
# 5. Copy the 'src' folder into the container
COPY src/ ./src/
# 6. Expose port
EXPOSE 8501
# 7. Healthcheck
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
# 8. Run the app located inside src/
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |