File size: 452 Bytes
328a452
84620e2
 
328a452
84620e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57a4520
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-alpine

# Install git
RUN apk add --no-cache git

# Clone the repo
RUN git clone https://github.com/Ranjan-Shettigar/Quanta.git /app

WORKDIR /app

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

# Expose Flask port
EXPOSE 5000

# Set environment variable for Flask
ENV FLASK_APP=app.py
ENV FLASK_RUN_HOST=0.0.0.0

# Run the app with Gunicorn for production
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]