Spaces:
Runtime error
Runtime error
File size: 523 Bytes
67560a5 27a5959 67560a5 27a5959 67560a5 27a5959 67560a5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Use the lightweight python image
FROM python:3.9-slim
# Set the working directory
WORKDIR /code
# Copy and install requirements first (to cache the layer)
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Copy the actual application code
COPY . .
# Expose the mandatory Hugging Face port
EXPOSE 7860
# Launch standard Streamlit without the virtual framebuffer bloat
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |