File size: 565 Bytes
6a3de9e
697c967
 
6a3de9e
dad5d6e
697c967
6a3de9e
 
 
 
 
697c967
6a3de9e
697c967
6a3de9e
 
697c967
6a3de9e
 
697c967
6a3de9e
9e9962e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use an official Python runtime as a parent image
FROM python:3.10

# Set the working directory in the container
WORKDIR /app

# Install uv for faster dependency management
RUN pip install uv

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

# Copy the rest of the application code
COPY . .

# Expose the port the app runs on
EXPOSE 8000

# Run the FastAPI application with Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]