Time-Distribution / Dockerfile
Nechba's picture
add app
9ae4a60
raw
history blame
433 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
EXPOSE 8501
# Command to run the Uvicorn server
CMD ["streamlit", "run", "app.py"]