diff --git a/odc_application_dockerfile b/odc_application_dockerfile index 00f0c3b..011c65e 100644 --- a/odc_application_dockerfile +++ b/odc_application_dockerfile @@ -55,20 +55,14 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \ && echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \ && chmod +x /docker-entrypoint-init.d/01-symfony.sh +USER nobody + RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \ && unzip artifact.zip \ - && mkdir data \ - && chown -R nobody secretStorage \ - && chown -R nobody public \ - && chown -R nobody data \ - && chown -R nobody var + && mkdir data -RUN apk del unzip \ - && rm artifact.zip \ - && rm -r var/cache \ - && rm -rf /var/cache/apk/* - -USER nobody +RUN rm artifact.zip \ + && rm -r var/cache ENV nginx_root_directory=/var/www/html/public \ upload_max_filesize=10M \