Spaces:
Sleeping
Sleeping
File size: 627 Bytes
a5f67d6 effc62f a5f67d6 effc62f a5f67d6 effc62f a5f67d6 effc62f a5f67d6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# Dockerfile
FROM python:3.10-slim
WORKDIR /app
# (Optional) system deps if you need them; safe to remove if not needed
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
# Install Python deps
COPY requirements.txt /app/
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy code
COPY . /app
# Do NOT set STREAMLIT_SERVER_PORT here.
# Spaces will inject $PORT at runtime.
# Start Streamlit on the port Spaces provides, and bind to 0.0.0.0
CMD ["bash", "-lc", "streamlit run /app/frontend.py --server.port $PORT --server.address 0.0.0.0"]
|