Skip to content

Commit

Permalink
build: try su-exec instead of gosu
Browse files Browse the repository at this point in the history
  • Loading branch information
BelgianNoise committed May 26, 2024
1 parent f0f52fb commit 965e513
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dl-downer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ RUN pip install --no-cache-dir -r requirements.txt
# RUN pip install [email protected]
RUN playwright install --with-deps

RUN apt-get install -y sudo gosu
RUN apt-get install -y sudo su-exec

ENTRYPOINT [ "entry.sh" ]
2 changes: 1 addition & 1 deletion dl-downer/entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 965e513

Please sign in to comment.