Spaces:
Sleeping
Sleeping
Synced repo using 'sync_with_huggingface' Github Action
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim-bullseye
|
2 |
+
|
3 |
+
ADD https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam version.json
|
4 |
+
|
5 |
+
RUN apt-get update && apt-get install -y git
|
6 |
+
|
7 |
+
RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true git clone $(cat /run/secrets/GIT_REPO) /code
|
8 |
+
|
9 |
+
WORKDIR /code
|
10 |
+
|
11 |
+
RUN chmod -R 777 /code
|
12 |
+
|
13 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
14 |
+
|
15 |
+
RUN chmod +x /code/entrypoint.sh
|
16 |
+
|
17 |
+
ENTRYPOINT ["/code/entrypoint.sh"]
|