File size: 471 Bytes
5af15e4
63334ed
c7b1ae2
5af15e4
 
 
 
 
c7b1ae2
 
5af15e4
1d2b7ef
5af15e4
2ea4c2e
 
5af15e4
1d2b7ef
c7b1ae2
5af15e4
63334ed
 
5af15e4
 
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.11-slim

# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Set work directory
WORKDIR /app

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

# Copy project
COPY . .

# Expose port
EXPOSE 8000

# Command to run the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]