File size: 482 Bytes
4fe5752
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-slim

# Set working directory
WORKDIR /app

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

# Copy app code
COPY . .

# Expose the port FastAPI uses
EXPOSE 8000

# Run the FastAPI app and the Gradio demo concurrently using a process manager (or choose one)
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]