Skip to content

Commit 8b31459

Browse files
committedFeb 16, 2025·
fix(docker): Pre-create "$HOME/.gradle" for proper permissions
Fixes #9756. Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
1 parent 1563b20 commit 8b31459

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ ENV PATH=$PATH:/opt/ort/bin
582582
USER $USER
583583
WORKDIR $HOME
584584

585-
# Ensure that the ORT data directory exists to be able to mount the config into it with correct permissions.
586-
RUN mkdir -p "$HOME/.ort"
585+
# Ensure that these directories exist in the container to be able to mount directories from the host into them with correct permissions.
586+
RUN mkdir -p "$HOME/.ort" "$HOME/.gradle"
587587

588588
ENTRYPOINT ["/opt/ort/bin/ort"]
589589

@@ -598,7 +598,7 @@ ENV PATH=$PATH:/opt/ort/bin
598598
USER $USER
599599
WORKDIR $HOME
600600

601-
# Ensure that the ORT data directory exists to be able to mount the config into it with correct permissions.
602-
RUN mkdir -p "$HOME/.ort"
601+
# Ensure that these directories exist in the container to be able to mount directories from the host into them with correct permissions.
602+
RUN mkdir -p "$HOME/.ort" "$HOME/.gradle"
603603

604604
ENTRYPOINT ["/opt/ort/bin/ort"]

0 commit comments

Comments
 (0)
Please sign in to comment.