CodeXDevloper commited on
Commit
07f6ef2
·
verified ·
1 Parent(s): ad47546

Create dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +17 -0
dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile 1 - Basic Flask API
2
+ FROM python:3.9-slim
3
+
4
+ WORKDIR /app
5
+
6
+ # Install dependencies
7
+ COPY requirements.txt .
8
+ RUN pip install --no-cache-dir -r requirements.txt
9
+
10
+ # Copy application code
11
+ COPY app.py .
12
+
13
+ # Expose port
14
+ EXPOSE 5000
15
+
16
+ # Run the application
17
+ CMD ["python", "app.py"]