Spaces:
Runtime error
Runtime error
Try to fix perms #8
Browse files- 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"]
|