ninavacabsa commited on
Commit
ca404e5
·
verified ·
1 Parent(s): 375edd0

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ RUN apt-get update && apt-get install -y git
4
+
5
+ ADD https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam v.json
6
+
7
+ RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \
8
+ git clone $(cat /run/secrets/GIT_REPO) /app && \
9
+ chmod -R 777 /app
10
+
11
+ WORKDIR /app
12
+
13
+ RUN if [ -f packages.txt ]; then \
14
+ apt-get install -y $(cat packages.txt); \
15
+ fi
16
+
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ ENTRYPOINT ["/app/entrypoint.sh"]