From 4fccf772f6545819e89df607b6a851c9fb399a3e Mon Sep 17 00:00:00 2001 From: Chewbaka <3535011+Chewbaka69@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:31:42 +0100 Subject: [PATCH] Change user to application to allow permission on files --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9ed1d54..2b35b4f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM webdevops/php-nginx:7.4-alpine +USER application + WORKDIR /app COPY ./ /app @@ -13,4 +15,4 @@ RUN (crontab -l ; echo "*/2 * * * * /usr/local/bin/p RUN (crontab -l ; echo "*/5 * * * * /usr/local/bin/php /app/oil refine server:browseServers")| crontab - RUN (crontab -l ; echo "*/5 * * * * /usr/local/bin/php /app/oil refine server:browseServers")| crontab - RUN (crontab -l ; echo "0 5 1 * * /usr/local/bin/php /app/oil refine server:checkNotFound")| crontab - -RUN (crontab -l ; echo "0 5 1 * * /usr/local/bin/php /app/oil refine server:checkNotFound")| crontab - \ No newline at end of file +RUN (crontab -l ; echo "0 5 1 * * /usr/local/bin/php /app/oil refine server:checkNotFound")| crontab -