osrokas commited on
Commit
7564f87
1 Parent(s): 9554a13

Synced repo using 'sync_with_huggingface' Github Action

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