alvanlii commited on
Commit
d67f68b
·
1 Parent(s): 18d9bb8

Try to fix perms #7

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -15,6 +15,7 @@ RUN apt install -y git
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
@@ -36,5 +37,5 @@ 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"]
 
15
 
16
  RUN useradd -m -u 1000 user
17
  RUN mkdir /exp && mkdir /exp/domain-expansion
18
+ RUN chmod -R a+rwX /exp
19
  ENV HOME=/exp/domain-expansion
20
 
21
  RUN pip install imageio-ffmpeg==0.4.3 pyspng==0.1.0
 
37
 
38
  # Switch to the "user" user
39
  USER user
40
+ COPY . .
41
  CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]