GuillaumeSalouHF HF staff commited on
Commit
7ea0ffb
1 Parent(s): a7bf753

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -4,4 +4,14 @@ RUN pip install fastapi uvicorn[standard] huggingface_hub
4
 
5
  COPY --link . .
6
 
 
 
 
 
 
 
 
 
 
 
7
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
 
5
  COPY --link . .
6
 
7
+ RUN useradd -m -u 1000 user
8
+ USER user
9
+ ENV HOME /home/user
10
+ ENV PATH $HOME/.local/bin:$PATH
11
+ WORKDIR $HOME
12
+ RUN mkdir app
13
+ WORKDIR $HOME/app
14
+
15
+ COPY --chown=user . $HOME/app
16
+
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]