diff --git a/skib_application_dockerfile b/skib_application_dockerfile index 182b3fa..9c9a1fa 100644 --- a/skib_application_dockerfile +++ b/skib_application_dockerfile @@ -53,24 +53,14 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-symfony.sh \ && echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \ && chmod +x /docker-entrypoint-init.d/02-symfony.sh -RUN --mount=type=secret,id=ARTIFACT_USER \ - --mount=type=secret,id=ARTIFACT_SECRET \ - --mount=type=secret,id=ARTIFACT_URL \ - ARTIFACT_USER=$(cat /run/secrets/ARTIFACT_USER) \ - ARTIFACT_SECRET=$(cat /run/secrets/ARTIFACT_SECRET) \ - ARTIFACT_URL=$(cat /run/secrets/ARTIFACT_URL) \ - && wget https://${ARTIFACT_USER}:${ARTIFACT_SECRET}@${ARTIFACT_URL}-${VERSION}.zip -O artifact.zip \ - && unzip artifact.zip \ - && chown -R nobody public \ - && chown -R nobody var \ - && chmod -R 700 public \ - && chmod -R 700 var - -RUN rm artifact.zip \ - && rm -r var/cache - USER nobody +RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/artifact.zip -O artifact.zip \ + && unzip artifact.zip \ + && mkdir data \ + && mkdir -p var/log \ + && mkdir -p var/cache + ENV nginx_root_directory=/var/www/html/public \ memory_limit=1024M \ post_max_size=20M \