Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse filesadding permissions and storage, I think
- Dockerfile +13 -0
Dockerfile
CHANGED
|
@@ -9,6 +9,17 @@ ARG INSTALL_CHANNEL=pytorch
|
|
| 9 |
# Automatically set by buildx
|
| 10 |
ARG TARGETPLATFORM
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
ENV PATH=/opt/conda/bin:$PATH
|
| 13 |
|
| 14 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
@@ -59,3 +70,5 @@ RUN --mount=type=secret,id=DEBUG,mode=0444,required=true \
|
|
| 59 |
git remote add origin $(cat /run/secrets/DEBUG)
|
| 60 |
|
| 61 |
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
| 9 |
# Automatically set by buildx
|
| 10 |
ARG TARGETPLATFORM
|
| 11 |
|
| 12 |
+
RUN useradd -m -u 1000 user
|
| 13 |
+
|
| 14 |
+
USER user
|
| 15 |
+
|
| 16 |
+
# Set home to the user's home directory
|
| 17 |
+
ENV HOME=/home/user \
|
| 18 |
+
PATH=/home/user/.local/bin:$PATH
|
| 19 |
+
|
| 20 |
+
# Set the working directory to the user's home directory
|
| 21 |
+
WORKDIR $HOME/app
|
| 22 |
+
|
| 23 |
ENV PATH=/opt/conda/bin:$PATH
|
| 24 |
|
| 25 |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
|
|
| 70 |
git remote add origin $(cat /run/secrets/DEBUG)
|
| 71 |
|
| 72 |
ENTRYPOINT ["/entrypoint.sh"]
|
| 73 |
+
|
| 74 |
+
COPY $HOME/app --chown=user .
|