File size: 495 Bytes
9ea8f31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2c1b98b
9ea8f31
 
04f923e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use official Python image
FROM python:3.12

# Set the working directory in the container
WORKDIR /app

# Copy the requirements file and install dependencies
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

# Download SpaCy model
RUN python -m spacy download en_core_web_lg

# Copy the FastAPI app code
COPY . .

# Expose the port FastAPI runs on
EXPOSE 7860

# Command to run the app using Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]