Spaces:
Runtime error
Runtime error
File size: 751 Bytes
d116f69 2688f5c d116f69 2688f5c d116f69 2688f5c d116f69 2688f5c d116f69 2688f5c d116f69 2688f5c d116f69 2688f5c d116f69 | 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 29 30 31 32 33 | # ---- Base Image ----
FROM python:3.10-slim
# ---- Environment Settings ----
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
# ---- System Dependencies ----
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# ---- Working Directory ----
WORKDIR /app
# ---- Copy Requirements ----
COPY requirements.txt .
# ---- Install Python Dependencies ----
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# ---- Copy Source Code ----
COPY src ./src
# ---- Expose Port (HF uses 7860) ----
EXPOSE 7860
# ---- Run Streamlit App ----
CMD ["streamlit", "run", "src/streamlit_app.py"]
|