userrein commited on
Commit
e5af374
·
verified ·
1 Parent(s): 3217d39

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 dependency system
6
+ RUN apt-get update && apt-get install -y \
7
+ git \
8
+ curl \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # copy project
12
+ COPY . /app
13
+
14
+ # install python requirements
15
+ RUN pip install --no-cache-dir -r requirements.txt
16
+
17
+ # jalankan app
18
+ CMD ["python", "app.py"]