Spaces:
Sleeping
Sleeping
# Start with a builder image | |
FROM python:3.9.13-slim as builder | |
# Copy only requirements.txt initially to leverage Docker cache | |
COPY requirements.txt . | |
RUN python3 -m pip install --upgrade pip | |
RUN python3 -m pip install --no-cache-dir -r requirements.txt | |
# sentence transformers deps | |
# ---------------------- | |
# Set working directory | |
WORKDIR /app | |
# Copy the rest of the application from the current directory to /app inside the container | |
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"] |