Mafia2008 commited on
Commit
0df5cf5
·
verified ·
1 Parent(s): 9b7a707

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install git and system dependencies
6
+ RUN apt-get update && \
7
+ apt-get install -y git && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
+ # Install Python requirements
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy the app code
15
+ COPY . .
16
+
17
+ # Run the app on port 7860
18
+ CMD ["python", "main.py"]