aminskjen commited on
Commit
5ef55c7
·
verified ·
1 Parent(s): 000435a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image with Python
2
+ FROM python:3.10-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy requirements and install
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy all your project files
12
+ COPY . .
13
+
14
+ # Expose the port Flask will run on
15
+ EXPOSE 7860
16
+
17
+ # Environment variable to tell Flask which file to run
18
+ ENV FLASK_APP=app.py
19
+ ENV FLASK_RUN_HOST=0.0.0.0
20
+ ENV FLASK_RUN_PORT=7860
21
+
22
+ # Start the app
23
+ CMD ["flask", "run"]