mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 20:47:59 -05:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user