diff --git a/docker/jdk16/Dockerfile b/docker/jdk16/Dockerfile index fab7ebf97b8..85e045a1b64 100644 --- a/docker/jdk16/Dockerfile +++ b/docker/jdk16/Dockerfile @@ -17,7 +17,8 @@ COPY --from=jre-build /javaruntime $JAVA_HOME RUN apt-get -y update && apt-get -y upgrade && apt-get -y install curl RUN rm -rf /var/lib/api/lists/* RUN adduser --disabled-password --gecos "" --home /opt/teku teku && \ - chown teku:teku /opt/teku + chown teku:teku /opt/teku && \ + chmod 0755 /opt/teku USER teku WORKDIR /opt/teku diff --git a/docker/jdk17/Dockerfile b/docker/jdk17/Dockerfile index 1e140161597..ea92c87c6f1 100644 --- a/docker/jdk17/Dockerfile +++ b/docker/jdk17/Dockerfile @@ -17,7 +17,8 @@ COPY --from=jre-build /javaruntime $JAVA_HOME RUN apt-get -y update && apt-get -y upgrade && apt-get -y install curl RUN rm -rf /var/lib/api/lists/* RUN adduser --disabled-password --gecos "" --home /opt/teku teku && \ - chown teku:teku /opt/teku + chown teku:teku /opt/teku && \ + chmod 0755 /opt/teku USER teku WORKDIR /opt/teku