From 3f72e5bcc40acf4947ca7845831cad7f13525adf Mon Sep 17 00:00:00 2001 From: Janne Bergman Date: Tue, 10 Mar 2026 15:58:23 +0200 Subject: [PATCH] Fix jar copy in docker COPY applies the given modes also to any directories it creates; 444 will not give access to files within a dir without root perms. --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 467b46c..63367b7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,6 +30,7 @@ ADD --chmod=444 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/doc # Connection string is provided as env in Kubernetes by secrets manager # it should not be provided for other environments (local etc) +RUN mkdir -p /usr/src/jore4-auth ADD --chmod=444 https://github.com/microsoft/ApplicationInsights-Java/releases/download/${APPINSIGHTS_VERSION}/applicationinsights-agent-${APPINSIGHTS_VERSION}.jar /usr/src/jore4-auth/applicationinsights-agent.jar COPY --chmod=444 ./applicationinsights.json /usr/src/jore4-auth/applicationinsights.json