tumwesigeibra commited on
Commit
efbb01a
·
verified ·
1 Parent(s): 13bee3d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system deps
6
+ RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
7
+
8
+ # Python dependencies
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # App code
13
+ COPY . .
14
+
15
+ # Set environment vars
16
+ ENV PORT=7860
17
+ ENV API_TOKEN=supersecret
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["python", "app.py"]