Mimi commited on
Commit
790299e
·
1 Parent(s): 6630247
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -6,8 +6,8 @@ ENV HOME=/home/user \
6
  COPY . $HOME/app
7
  RUN apt-get update && \
8
  apt-get install -y git && \
9
- --mount=type=secret, id=HF_TOKEN, mode=0444, required=True && \
10
- pip install --no-cache-dir huggingface_hub[cli]
11
 
12
  USER user
13
  WORKDIR $HOME/app
@@ -15,8 +15,7 @@ RUN pip install --user --no-cache-dir --upgrade -r requirements.txt
15
  EXPOSE 7860
16
 
17
  # Login to Hugging Face at runtime & Start app
18
- CMD huggingface-cli login --token $HF_TOKEN --add-to-git-credential && \
19
- streamlit run app.py \
20
  --server.headless true \
21
  --server.enableCORS false \
22
  --server.enableXsrfProtection false \
 
6
  COPY . $HOME/app
7
  RUN apt-get update && \
8
  apt-get install -y git && \
9
+ pip install --no-cache-dir huggingface_hub[cli] && \
10
+ huggingface-cli login --token $HF_TOKEN --add-to-git-credential
11
 
12
  USER user
13
  WORKDIR $HOME/app
 
15
  EXPOSE 7860
16
 
17
  # Login to Hugging Face at runtime & Start app
18
+ CMD streamlit run app.py \
 
19
  --server.headless true \
20
  --server.enableCORS false \
21
  --server.enableXsrfProtection false \