From ebe89743fbf43af707ad550e88dd8e7dcbdbd12a Mon Sep 17 00:00:00 2001 From: lennard Date: Mon, 2 Sep 2024 09:57:50 +0200 Subject: [PATCH] add datapunt user & chown --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cdbae861..c39dac47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,10 +25,12 @@ RUN rm /etc/apache2/mods-enabled/alias.conf COPY docker/000-default.conf /etc/apache2/sites-available/ COPY docker/docker-entrypoint.sh /bin -COPY . /srv/mapserver/ +RUN useradd -M -U datapunt +COPY . /srv/mapserver/ && chown -R datapunt:datapunt /srv/ RUN rm -rf /srv/mapserver/private COPY epsg /usr/share/proj EXPOSE 80 +USER datapunt CMD /bin/docker-entrypoint.sh \ No newline at end of file