diff --git a/Dockerfile b/Dockerfile index c6802506af..c9f8378dcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,7 +46,7 @@ FROM debian:bookworm-20230703-slim as final ENV PATH="/node/bin:${PATH}" ALGOD_PORT="8080" KMD_PORT="7833" ALGORAND_DATA="/algod/data" # curl is needed to lookup the fast catchup url -RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl gosu && \ +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && \ update-ca-certificates && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ diff --git a/docker/files/run/run.sh b/docker/files/run/run.sh index 29b69423dc..d92e7e1d1f 100755 --- a/docker/files/run/run.sh +++ b/docker/files/run/run.sh @@ -17,7 +17,7 @@ fi # as the algorand user. if [ "$(id -u)" = '0' ]; then chown -R algorand:algorand $ALGORAND_DATA - exec gosu algorand "$0" "$@" + exec su -p -c "$(readlink -f $0) $@" algorand fi # Script to configure or resume a network. Based on environment settings the