ahmetalper commited on
Commit
7e408b9
·
verified ·
1 Parent(s): 6f05b41

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ RUN useradd -m -u 1000 user
4
+
5
+ ENV HOME=/home/user
6
+ ENV PATH=/home/user/.local/bin:$PATH
7
+
8
+ USER user
9
+
10
+ WORKDIR $HOME/app
11
+
12
+ RUN pip install --no-cache-dir apscheduler
13
+ RUN pip install --no-cache-dir fastapi
14
+ RUN pip install --no-cache-dir pillow
15
+ RUN pip install --no-cache-dir requests
16
+ RUN pip install --no-cache-dir uvicorn
17
+ RUN pip install --no-cache-dir gdown
18
+
19
+ RUN --mount=type=secret,id=URL,mode=0444,required=true \
20
+
21
+ git clone $(cat /run/secrets/URL) .
22
+
23
+ COPY --chown=user . $HOME/app
24
+
25
+ CMD ["python", "backend/main.py"]