Spaces:
Running
Running
Update: Set LFS -> true
Browse files- Dockerfile +16 -7
Dockerfile
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
FROM python:3.9
|
|
|
|
|
|
|
2 |
|
3 |
RUN useradd -m -u 1000 user
|
4 |
|
@@ -21,11 +24,17 @@ RUN cd /app/restful/cutils && \
|
|
21 |
|
22 |
RUN pip install gdown
|
23 |
|
24 |
-
RUN
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--workers", "10", "--port", "7860"]
|
|
|
1 |
+
FROM python:3.9-bullseye
|
2 |
+
|
3 |
+
LABEL organization="R6Q - Infraprasta University"
|
4 |
+
LABEL team="Group 5"
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
|
|
|
24 |
|
25 |
RUN pip install gdown
|
26 |
|
27 |
+
RUN --mount=type=secret,id=MODELS_ID,mode=0444,required=true \
|
28 |
+
gdown https://drive.google.com/uc?id=$(cat /run/secrets/MODELS_ID) && \
|
29 |
+
unzip models.zip && rm models.zip
|
30 |
+
|
31 |
+
RUN --mount=type=secret,id=PICKLES_ID,mode=0444,required=true \
|
32 |
+
gdown https://drive.google.com/uc?id=$(cat /run/secrets/PICKLES_ID) && \
|
33 |
+
unzip pickles.zip && rm pickles.zip
|
34 |
+
|
35 |
+
RUN --mount=type=secret,id=POSTTRAINED_ID,mode=0444,required=true \
|
36 |
+
gdown https://drive.google.com/uc?id=$(cat /run/secrets/POSTTRAINED_ID) && \
|
37 |
+
unzip posttrained.zip && rm posttrained.zip
|
38 |
+
|
39 |
|
40 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--workers", "10", "--port", "7860"]
|