Spaces:
Sleeping
Sleeping
File size: 614 Bytes
bbeaa2f d442981 bbeaa2f d442981 bbeaa2f d442981 bbeaa2f d442981 bbeaa2f d442981 bbeaa2f d442981 bbeaa2f d442981 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Docker runtime for HF Space
# Use a slim Python base
FROM python:3.11-slim
# Basic hygiene
ENV PIP_NO_CACHE_DIR=1 PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
# Working directory
WORKDIR /app
# Copy and install Python deps first (better layer caching)
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy app code
COPY streamlit_app.py /app/
COPY README.md /app/
# Expose the port that the Space will connect to
EXPOSE 7860
# Run Streamlit on 0.0.0.0:7860
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|