File size: 399 Bytes
b19e5b5
 
 
 
 
c0559a6
b19e5b5
 
 
c0559a6
b19e5b5
 
 
 
 
 
c0559a6
b19e5b5
ef0c125
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.9-slim

WORKDIR /app

# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy the rest of the application
COPY . .

# Expose the port that FastAPI will run on
EXPOSE 8000

# Set environment variables
ENV PORT=8000
ENV CORS_ORIGIN=*

# Run the FastAPI application using our startup script
CMD ["python", "run.py"]