Time-Distribution / Dockerfile
Nechba's picture
Merge branch 'main' of https://huggingface.co/spaces/Nechba/Time-Distribution
0837940
raw
history blame
420 Bytes
# 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"]