alvanlii commited on
Commit
f90b95e
·
1 Parent(s): 4ffd4a1

Try to fix perms #6

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -15,10 +15,7 @@ RUN apt install -y git
15
 
16
  RUN useradd -m -u 1000 user
17
  RUN mkdir /exp && mkdir /exp/domain-expansion
18
- # Switch to the "user" user
19
- USER user
20
  ENV HOME=/exp/domain-expansion
21
- RUN chown -R user $HOME
22
 
23
  RUN pip install imageio-ffmpeg==0.4.3 pyspng==0.1.0
24
 
@@ -37,5 +34,7 @@ RUN python -m pip install gradio
37
  RUN (printf '#!/bin/bash\nunset TORCH_CUDA_ARCH_LIST\nexec \"$@\"\n' >> /entry.sh) && chmod a+x /entry.sh
38
  ENTRYPOINT ["/entry.sh"]
39
 
 
 
40
  COPY --chown=user . .
41
  CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
 
15
 
16
  RUN useradd -m -u 1000 user
17
  RUN mkdir /exp && mkdir /exp/domain-expansion
 
 
18
  ENV HOME=/exp/domain-expansion
 
19
 
20
  RUN pip install imageio-ffmpeg==0.4.3 pyspng==0.1.0
21
 
 
34
  RUN (printf '#!/bin/bash\nunset TORCH_CUDA_ARCH_LIST\nexec \"$@\"\n' >> /entry.sh) && chmod a+x /entry.sh
35
  ENTRYPOINT ["/entry.sh"]
36
 
37
+ # Switch to the "user" user
38
+ USER user
39
  COPY --chown=user . .
40
  CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]