From 965e5134c091a4cfdeaeb45498aca585e1cc198c Mon Sep 17 00:00:00 2001 From: Arthur Joppart Date: Mon, 27 May 2024 00:41:13 +0200 Subject: [PATCH] build: try su-exec instead of gosu --- dl-downer/Dockerfile | 2 +- dl-downer/entry.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dl-downer/Dockerfile b/dl-downer/Dockerfile index 7544806..47bf445 100644 --- a/dl-downer/Dockerfile +++ b/dl-downer/Dockerfile @@ -45,6 +45,6 @@ RUN pip install --no-cache-dir -r requirements.txt # RUN pip install playwright==@1.42.0 RUN playwright install --with-deps -RUN apt-get install -y sudo gosu +RUN apt-get install -y sudo su-exec ENTRYPOINT [ "entry.sh" ] diff --git a/dl-downer/entry.sh b/dl-downer/entry.sh index 1e3a8c4..7356fa0 100644 --- a/dl-downer/entry.sh +++ b/dl-downer/entry.sh @@ -32,4 +32,4 @@ chown -R "$PUID:$PGID" /downloads chown -R "$PUID:$PGID" /storage_states # Run the command as the specified user -exec gosu "$PUID:$PGID" python start.py "$@" +exec su-exec "$PUID:$PGID" python start.py "$@"