alvanlii commited on
Commit
f6cec28
1 Parent(s): d67f68b

Try to fix perms #8

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -13,7 +13,7 @@ ENV PYTHONUNBUFFERED 1
13
 
14
  RUN apt install -y git
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
@@ -36,6 +36,7 @@ RUN (printf '#!/bin/bash\nunset TORCH_CUDA_ARCH_LIST\nexec \"$@\"\n' >> /entry.s
36
  ENTRYPOINT ["/entry.sh"]
37
 
38
  # Switch to the "user" user
39
- USER user
40
  COPY . .
 
 
41
  CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
 
13
 
14
  RUN apt install -y git
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
 
36
  ENTRYPOINT ["/entry.sh"]
37
 
38
  # Switch to the "user" user
 
39
  COPY . .
40
+ RUN chmod -R a+rwX .
41
+
42
  CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]