File size: 469 Bytes
609c7f4
5026c77
 
 
 
 
 
 
 
 
 
 
8dabff2
 
5026c77
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.11

# Set the working directory in the container
WORKDIR /app

# Copy the application code
COPY . /app

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

# Copy the environment variable files into the container
# COPY .env /app/.env
# COPY .flaskenv /app/.flaskenv

# Expose port 7860
EXPOSE 7860

# Command to run the Flask app using Gunicorn (or Flask run for simple cases)
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "main:app"]