Spaces:
Sleeping
Sleeping
# Use an appropriate base image | |
FROM python:3.9 | |
# Set the working directory | |
WORKDIR /code | |
# Install system dependencies | |
RUN apt-get update && apt-get install -y glpk-utils | |
# Copy only requirements.txt initially to leverage Docker cache | |
COPY requirements.txt /code/requirements.txt | |
# Install Python dependencies | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Copy the rest of the application code | |
COPY . /code | |
# Expose the port Streamlit runs on (default is 8501) | |
EXPOSE 8501 | |
# Command to run your Streamlit application | |
CMD ["streamlit", "run", "app.py", "--server.port", "8501", "--server.address", "0.0.0.0"] |