From c4b45984125ca77a98f6ff06365650937c4a79a1 Mon Sep 17 00:00:00 2001 From: Rafael Matias Date: Wed, 15 Feb 2023 10:02:49 +0100 Subject: [PATCH] Allow other users to read the /opt/besu dir when using docker (#5092) Signed-off-by: Rafael Matias Co-authored-by: Sally MacFarlane --- docker/graalvm/Dockerfile | 3 ++- docker/openjdk-17-debug/Dockerfile | 3 ++- docker/openjdk-17/Dockerfile | 3 ++- docker/openjdk-latest/Dockerfile | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docker/graalvm/Dockerfile b/docker/graalvm/Dockerfile index 1b656ff3a7..d4009b9c92 100644 --- a/docker/graalvm/Dockerfile +++ b/docker/graalvm/Dockerfile @@ -3,7 +3,8 @@ FROM ghcr.io/graalvm/graalvm-ce:ol9-java17 ARG VERSION="dev" RUN adduser --home /opt/besu besu && \ - chown besu:besu /opt/besu + chown besu:besu /opt/besu && \ + chmod 0755 /opt/besu USER besu WORKDIR /opt/besu diff --git a/docker/openjdk-17-debug/Dockerfile b/docker/openjdk-17-debug/Dockerfile index adf0e88669..e938677b42 100644 --- a/docker/openjdk-17-debug/Dockerfile +++ b/docker/openjdk-17-debug/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \ - chown besu:besu /opt/besu + chown besu:besu /opt/besu && \ + chmod 0755 /opt/besu USER besu WORKDIR /opt/besu diff --git a/docker/openjdk-17/Dockerfile b/docker/openjdk-17/Dockerfile index 1eeac94cd8..dbc30e7dbb 100644 --- a/docker/openjdk-17/Dockerfile +++ b/docker/openjdk-17/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \ - chown besu:besu /opt/besu + chown besu:besu /opt/besu && \ + chmod 0755 /opt/besu USER besu WORKDIR /opt/besu diff --git a/docker/openjdk-latest/Dockerfile b/docker/openjdk-latest/Dockerfile index e2081facc5..0736ab4a32 100644 --- a/docker/openjdk-latest/Dockerfile +++ b/docker/openjdk-latest/Dockerfile @@ -7,7 +7,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \ - chown besu:besu /opt/besu + chown besu:besu /opt/besu && \ + chmod 0755 /opt/besu USER besu WORKDIR /opt/besu