Skip to content

Commit

Permalink
Less aggressive permissions setting. COPY with chown flag
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Feb 18, 2024
1 parent ff8ba4d commit fc88f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ENV IMAGE_SLUG="jupyter-python"
#ENV PATH=/opt/another/bin:$PATH

# Copy early so we can use scripts in the build - Changes to these files will invalidate the cache and cause a rebuild.
COPY ./COPY_ROOT/ /
COPY --chown=0:1111 ./COPY_ROOT/ /

# Default env inherited from ghcr.io/ai-dock/python

Expand All @@ -23,7 +23,7 @@ COPY ./COPY_ROOT/ /
RUN set -eo pipefail && /opt/ai-dock/bin/build/layer0/init.sh | tee /var/log/build.log

# Copy overrides and new files into a final layer for fast rebuilds. Uncomment below
#COPY ./COPY_ROOT_EXTRA/ /
#COPY --chown=0:1111 ./COPY_ROOT_EXTRA/ /
#RUN set -eo pipefail && /opt/ai-dock/bin/build/layer1/init.sh | tee -a /var/log/build.log


Expand Down

0 comments on commit fc88f3b

Please sign in to comment.