File size: 377 Bytes
fa39336
15df8b2
 
fa39336
 
f29135a
fa39336
 
92b4c18
fa39336
f29135a
 
fa39336
19b711b
f29135a
fa39336
92b4c18
fa39336
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 1. Base image
FROM python:3.10-slim

# 2. Create & switch to /app
WORKDIR /app

# 3. Copy all code & model into the image
COPY . .

# 4. Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# 5. Expose the port your app will run on
EXPOSE 7860

# 6. Launch Uvicorn, pointing at main:app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]