Allow other users to read the /opt/besu dir when using docker (#5092)

Signed-off-by: Rafael Matias <rafael@skyle.net>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/5095/head
Rafael Matias 2 years ago committed by GitHub
parent 08e2f87306
commit c4b4598412
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docker/graalvm/Dockerfile
  2. 3
      docker/openjdk-17-debug/Dockerfile
  3. 3
      docker/openjdk-17/Dockerfile
  4. 3
      docker/openjdk-latest/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

@ -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

@ -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

@ -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

Loading…
Cancel
Save