aideveloper24 commited on
Commit
8334c86
·
verified ·
1 Parent(s): efa6633

Create Dockerfile

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