Topallaj Denis commited on
Commit
f3d848c
1 Parent(s): 1e706d4

file permission for HF

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -11,4 +11,15 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
 
 
 
 
 
 
 
 
 
 
 
14
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
 
12
  COPY . .
13
 
14
+ RUN useradd -m -u 1000 user
15
+
16
+ USER user
17
+
18
+ ENV HOME=/home/user \
19
+ PATH=/home/user/.local/bin:$PATH
20
+
21
+ WORKDIR $HOME/app
22
+
23
+ COPY --chown=user . $HOME/app
24
+
25
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]