Skip to content

Commit

Permalink
Testing permissions and uid/gid
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Aug 19, 2024
1 parent 193ff01 commit 518411b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ ENTRYPOINT [ "/home/wis2downloader/app/entrypoint.sh" ]
HEALTHCHECK --interval=1m --timeout=3s \
CMD curl -f http://localhost:5000/subscriptions || exit 1

USER wis2downloader
# Run wis2downloader when the container launches
CMD ["/bin/bash", "-c", "gunicorn --bind 0.0.0.0:5000 --workers 1 wis2downloader.app:app"]
3 changes: 3 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
echo "$(id -g):$(id -u)"
echo "$(whoami)"

su - root
echo "$(id -g):$(id -u)"
echo "$(whoami)"
usermod -u $(id -u) wis2downloader
groupmod -g $(id -g) wis2

Expand Down

0 comments on commit 518411b

Please sign in to comment.