File size: 371 Bytes
6dcabb7
 
 
 
 
 
a69cb1e
6dcabb7
 
 
 
 
a69cb1e
6b50bcf
6dcabb7
 
6b50bcf
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use a slim Python base
FROM python:3.9-slim

# Set working dir
WORKDIR /app

# Copy and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

# Expose the new port and set it via env var
ENV PORT=7860
EXPOSE ${PORT}

# Run Uvicorn bound to port 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]