update skib_build downöoad
This commit is contained in:
parent
74858d3577
commit
d1c25b6a82
1 changed files with 6 additions and 16 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Reference in a new issue