Skip to content

Commit 3f72e5b

Browse files
committed
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.
1 parent 4d42934 commit 3f72e5b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ADD --chmod=444 https://raw.githubusercontent.com/HSLdevcom/jore4-tools/main/doc
3030

3131
# Connection string is provided as env in Kubernetes by secrets manager
3232
# it should not be provided for other environments (local etc)
33+
RUN mkdir -p /usr/src/jore4-auth
3334
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
3435
COPY --chmod=444 ./applicationinsights.json /usr/src/jore4-auth/applicationinsights.json
3536

0 commit comments

Comments
 (0)