Time-Distribution / Dockerfile
Nechba's picture
Update Dockerfile
209e4e4 verified
raw
history blame
422 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 apt-get update && apt-get install -y glpk-utils
# Expose port 80 to the outside world
# Command to run the Uvicorn server
CMD ["streamlit", "run", "app.py"]