yusufs commited on
Commit
8dc2050
·
1 Parent(s): 8679a35

docs(Dockerfile): add comment about estimated image size after compile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -20,8 +20,10 @@ COPY --chown=user . /app
20
  # For example, if SECRET_EXAMPLE is the name of the secret you created in the Settings tab,
21
  # you can read it at build time by mounting it to a file, then reading it with $(cat /run/secrets/SECRET_EXAMPLE).
22
  # https://huggingface.co/docs/hub/en/spaces-sdks-docker#buildtime
23
- RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
24
- HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python /app/download_model.py
 
 
25
 
26
  EXPOSE 7860
27
 
 
20
  # For example, if SECRET_EXAMPLE is the name of the secret you created in the Settings tab,
21
  # you can read it at build time by mounting it to a file, then reading it with $(cat /run/secrets/SECRET_EXAMPLE).
22
  # https://huggingface.co/docs/hub/en/spaces-sdks-docker#buildtime
23
+ #
24
+ # AFTER TRIAL AND ERROR WE GOT 16GB (16431849854 bytes) OF LAYERS :(
25
+ #
26
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python /app/download_model.py
27
 
28
  EXPOSE 7860
29