qywok commited on
Commit
9506cfc
·
verified ·
1 Parent(s): 8582ca4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -13
Dockerfile CHANGED
@@ -22,23 +22,25 @@ RUN cd /app/restful/cutils && \
22
  python setup.py build_ext --inplace && \
23
  chmod 777 * && cd ../..
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=DATASETS_ID,mode=0444,required=true \
36
- gdown https://drive.google.com/uc?id=$(cat /run/secrets/DATASETS_ID) && \
37
- unzip datasets.zip && rm datasets.zip
38
 
39
- RUN --mount=type=secret,id=POSTTRAINED_ID,mode=0444,required=true \
40
- gdown https://drive.google.com/uc?id=$(cat /run/secrets/POSTTRAINED_ID) && \
41
- unzip posttrained.zip && rm posttrained.zip
 
 
42
 
43
 
44
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--workers", "10", "--port", "7860"]
 
22
  python setup.py build_ext --inplace && \
23
  chmod 777 * && cd ../..
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=DATASETS_ID,mode=0444,required=true \
36
+ # gdown https://drive.google.com/uc?id=$(cat /run/secrets/DATASETS_ID) && \
37
+ # unzip datasets.zip && rm datasets.zip
38
 
39
+ # RUN --mount=type=secret,id=POSTTRAINED_ID,mode=0444,required=true \
40
+ # gdown https://drive.google.com/uc?id=$(cat /run/secrets/POSTTRAINED_ID) && \
41
+ # unzip posttrained.zip && rm posttrained.zip
42
+
43
+ RUN git clone https://huggingface.co/datasets/qywok/indonesia_stocks && ls && ls indonesia_stocks
44
 
45
 
46
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--workers", "10", "--port", "7860"]