Rockk08 commited on
Commit
0cd6d77
·
1 Parent(s): 4c0adba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -24,10 +24,9 @@ WORKDIR $HOME/app
24
 
25
  COPY --chown=user . $HOME/app
26
 
27
- RUN --mount=type=secret,id=FIREBASE_KEY,mode=0444,required=true \
28
- git init $HOME/app && \
29
- cd $HOME/app && \
30
- git remote add origin $(cat /run/secrets/FIREBASE_KEY) && \
31
- git config --global init.defaultBranch main
32
 
33
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
24
 
25
  COPY --chown=user . $HOME/app
26
 
27
+ RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
28
+ git config --global init.defaultBranch main && \
29
+ git init && \
30
+ git remote add origin $(cat /run/secrets/SECRET_EXAMPLE)
 
31
 
32
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]