Browse Source

move from sudo to exec setpriv (#2600)

pull/2605/head
Kyle Spearrin 3 years ago committed by GitHub
parent
commit
ae647bbf44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docker-unified/Dockerfile
  2. 2
      docker-unified/entrypoint.sh

1
docker-unified/Dockerfile

@ -214,7 +214,6 @@ RUN apt-get update && apt-get install -y \ @@ -214,7 +214,6 @@ RUN apt-get update && apt-get install -y \
supervisor \
tzdata \
unzip \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Create required directories

2
docker-unified/entrypoint.sh

@ -99,4 +99,4 @@ chown -R $PUID:$PGID \ @@ -99,4 +99,4 @@ chown -R $PUID:$PGID \
/var/run/nginx \
/run
sudo -E -u \#$PUID /usr/bin/supervisord
exec setpriv --reuid=$PUID --regid=$PGID --init-groups /usr/bin/supervisord
Loading…
Cancel
Save