Spaces:
Sleeping
Sleeping
File size: 582 Bytes
6e0c983 70b153e 6e0c983 71774db 6e0c983 70b153e 6e0c983 70b153e 6e0c983 71774db 70b153e 6e0c983 70b153e 6e0c983 95486ca 209e4e4 6e0c983 a780a2e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# 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 7860
# Command to run your Streamlit application
CMD ["streamlit", "run", "app.py"] |