File size: 570 Bytes
5bc002c
 
 
 
 
 
 
825134c
5bc002c
 
 
 
4e1f8b6
 
9aed602
5bc002c
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Use the official Python image as a parent image
FROM python:3.11.3-slim

# Set the working directory within the container
WORKDIR /app

# Copy the requirements.txt file into the container
COPY ./requirements.txt /app/requirements.txt

# Install the Python dependencies
RUN pip install -r /app/requirements.txt

# Copy all other relevant files into the work directory
COPY . .

# Expose port 8000 for the FastAPI application
EXPOSE 8000

# Define the command to run your FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]