Spaces:
Running
Running
File size: 737 Bytes
868eab0 7e6c7e8 868eab0 | 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 | # Frontend image for the Streamlit UI.
FROM python:3.11-slim
# Keep Python logs visible in Docker and avoid writing .pyc files in containers.
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install dependencies before copying source files so Docker can reuse the
# dependency layer when only application code changes.
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY backend ./backend
COPY frontend ./frontend
EXPOSE 8501
# Streamlit must listen on 0.0.0.0 so it is reachable from outside the container.
CMD [
"streamlit",
"run",
"frontend/streamlit_app.py",
"--server.address=0.0.0.0",
"--server.port=8501"
]
|