File size: 419 Bytes
81e15fe
 
 
 
 
 
 
 
 
 
 
 
944627c
 
 
81e15fe
 
 
 
a4cb1c4
81e15fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Use Python base image
FROM python:3.12

# Set working directory
WORKDIR /app

# Copy current files into container
COPY . /app

# Install Flask
RUN pip install --no-cache-dir -r requirements.txt

# Build and install your local package (compiles Cython extension)
RUN pip install --no-cache-dir -e .

# Expose default port
EXPOSE 7860

# Run with Gunicorn
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"]