Rockk08 commited on
Commit
709fef0
·
1 Parent(s): 8593d9a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -14,6 +14,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
14
 
15
  RUN useradd -m -u 1000 user
16
 
 
 
 
 
 
 
17
 
18
  USER user
19
 
@@ -24,9 +30,4 @@ WORKDIR $HOME/app
24
 
25
  COPY --chown=user . $HOME/app
26
 
27
- RUN --mount=type=secret,id=FIREBASE_KEY,mode=0444,required=true \
28
- apt-get install -y git && \
29
- git init && \
30
- git remote add origin $(cat /run/secrets/FIREBASE_KEY)
31
-
32
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
14
 
15
  RUN useradd -m -u 1000 user
16
 
17
+ USER root
18
+
19
+ RUN --mount=type=secret,id=FIREBASE_KEY,mode=0444,required=true \
20
+ apt-get install -y git && \
21
+ git init && \
22
+ git remote add origin $(cat /run/secrets/FIREBASE_KEY)
23
 
24
  USER user
25
 
 
30
 
31
  COPY --chown=user . $HOME/app
32
 
 
 
 
 
 
33
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]