Merge pull request 'update odc' (#14) from hotfix/odc-secretStorage-Permission into main
Reviewed-on: #14
This commit is contained in:
commit
74858d3577
1 changed files with 5 additions and 11 deletions
|
@ -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 \
|
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/01-symfony.sh \
|
||||||
&& chmod +x /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 \
|
RUN wget https://github.com/H2-invent/open-datenschutzcenter/releases/download/${VERSION}/application.zip -O artifact.zip \
|
||||||
&& unzip artifact.zip \
|
&& unzip artifact.zip \
|
||||||
&& mkdir data \
|
&& mkdir data
|
||||||
&& chown -R nobody secretStorage \
|
|
||||||
&& chown -R nobody public \
|
|
||||||
&& chown -R nobody data \
|
|
||||||
&& chown -R nobody var
|
|
||||||
|
|
||||||
RUN apk del unzip \
|
RUN rm artifact.zip \
|
||||||
&& rm artifact.zip \
|
&& rm -r var/cache
|
||||||
&& rm -r var/cache \
|
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
USER nobody
|
|
||||||
|
|
||||||
ENV nginx_root_directory=/var/www/html/public \
|
ENV nginx_root_directory=/var/www/html/public \
|
||||||
upload_max_filesize=10M \
|
upload_max_filesize=10M \
|
||||||
|
|
Loading…
Reference in a new issue