From d3abfb6b2684ac16a993a37dec429bbab464964a Mon Sep 17 00:00:00 2001 From: Jafner <40403594+Jafner@users.noreply.github.com> Date: Thu, 9 Sep 2021 13:20:30 -0700 Subject: [PATCH] Added PUID and PGID env vars to dockerfile Added chown to dockerfile --- 5etools-docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/5etools-docker/Dockerfile b/5etools-docker/Dockerfile index 07978eab..5c9f41c3 100644 --- a/5etools-docker/Dockerfile +++ b/5etools-docker/Dockerfile @@ -1,4 +1,6 @@ FROM httpd +ENV PUID=${PUID:-1000} +ENV PGID=${PGID:-1000} COPY init.sh /init.sh COPY healthcheck.sh /healthcheck.sh RUN apt-get update && \ @@ -8,6 +10,7 @@ chmod +x /init.sh && \ chmod +x /healthcheck.sh WORKDIR /usr/local/apache2/htdocs/ RUN mkdir download +RUN chown -R $PUID:$PGID /usr/local/apache2/htdocs ENV IMG false HEALTHCHECK --start-period=1m CMD /healthcheck.sh CMD ["/bin/bash","/init.sh"] \ No newline at end of file