diff --git a/docker/Dockerfile.application b/docker/Dockerfile.application index e6e88aa..5c80114 100644 --- a/docker/Dockerfile.application +++ b/docker/Dockerfile.application @@ -12,12 +12,15 @@ USER $BUILD_UID WORKDIR $BUILD RUN --mount=type=cache,target=$MAVEN_HOME/.m2,uid=$BUILD_UID \ mvn -e -Duser.home=$MAVEN_HOME package +USER 0 +RUN chown -R root $BUILD FROM openjdk:7u211-jre-alpine AS backend RUN < $*" - if /app/entrypoint.sh tool "$*" + if /app/entrypoint.sh tool $* then touch state/init-$stage else diff --git a/docker/compose.yml b/docker/compose.yml index 5eaf8a0..a3083ea 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -25,6 +25,7 @@ services: dockerfile: docker/Dockerfile.application target: backend restart: always + user: "1000" volumes: - init-state:/app/state environment: