File size: 440 Bytes
7df128f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Use an official Python runtime as a parent image
FROM python:3.9

# Set the working directory
WORKDIR /code

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

# Copy the rest of the application code
COPY . /code/

# Expose port 8000 (FastAPI default)
EXPOSE 8000

# Command to run FastAPI app
CMD ["fastapi", "run", "backend/api/main.py", "--host", "0.0.0.0", "--port", "8000"]