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 18592e6 commit 6aa4dc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ USER wis2downloader
# Set the working directory to /app
WORKDIR /home/wis2downloader
RUN crontab ./app/clean_downloads.cron

USER root
ENTRYPOINT [ "/home/wis2downloader/app/entrypoint.sh" ]

# Add healthcheck
Expand Down
2 changes: 2 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
sudo usermod -u $(id -u) wis2downloader
sudo groupmod -g $(id -g) wis2

su wis2downloader

# print the download_dir
echo "Download directory in container: $DOWNLOAD_DIR"

Expand Down

0 comments on commit 6aa4dc4

Please sign in to comment.