File size: 612 Bytes
70b153e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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"]