vortexa64 commited on
Commit
2a5975b
·
verified ·
1 Parent(s): 086a349

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Set workdir
9
+ WORKDIR /app
10
+
11
+ # Copy project files
12
+ COPY . /app
13
+
14
+ # Install Python requirements
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # Expose default port
18
+ EXPOSE 7860
19
+
20
+ # Run app
21
+ CMD ["python", "app.py"]