Spaces:
Sleeping
Sleeping
File size: 420 Bytes
70b153e 71774db 70b153e 71774db 70b153e 71774db 70b153e 71774db 70b153e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# Start with a builder image
FROM python:3.9 as builder
WORKDIR /code
# Copy only requirements.txt initially to leverage Docker cache
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
RUN sudo apt-get install -y glpk-utils
# Expose port 80 to the outside world
EXPOSE 8501
# Command to run the Uvicorn server
CMD ["streamlit", "run", "app.py"] |