From 6aa4dc4e12949d7aa3f4dd90fc09afeb018f0dfe Mon Sep 17 00:00:00 2001 From: david-i-berry Date: Mon, 19 Aug 2024 20:28:46 +0200 Subject: [PATCH] Testing permissions and uid/gid. --- docker/Dockerfile | 2 ++ docker/entrypoint.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4f26249..f1c6bdf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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 diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 589239c..cc96bd0 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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"