File size: 375 Bytes
8707947
 
 
 
 
 
33555e2
8707947
 
33555e2
8707947
 
33555e2
8707947
 
33555e2
8707947
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use Python base image
FROM python:3.11

# Set working directory
WORKDIR /app

# Copy files to working directory
COPY . /app

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

# Expose the port gunicorn will run on
EXPOSE 7860

# Command to run your Flask app with Gunicorn
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app"]