Merge pull request 'remove command fos_js_routing' (#10) from holzi1005-patch-6 into main

Reviewed-on: #10
Reviewed-by: emanuel.holzmann <emanuel.holzmann@noreply.localhost>
This commit is contained in:
emanuel.holzmann 2024-11-29 13:56:36 +01:00
commit 9161c8896f

View file

@ -24,7 +24,6 @@ RUN apk --no-cache add \
RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:clear" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console cache:warmup" >> /docker-entrypoint-init.d/02-symfony.sh \
&& echo "php bin/console fos:js-routing:dump --format=json --target=assets/data/fos_routes.json" >> /docker-entrypoint-init.d/02-symfony.sh \
&& chmod +x /docker-entrypoint-init.d/02-symfony.sh
RUN --mount=type=secret,id=ARTIFACT_USER \
@ -35,7 +34,6 @@ RUN --mount=type=secret,id=ARTIFACT_USER \
ARTIFACT_URL=$(cat /run/secrets/ARTIFACT_URL) \
&& wget https://${ARTIFACT_USER}:${ARTIFACT_SECRET}@${ARTIFACT_URL}-${VERSION}.zip -O artifact.zip \
&& unzip artifact.zip \
&& chown nobody assets/data/fos_routes.json \
&& chown -R nobody public \
&& chown -R nobody var \
&& chmod -R 700 public \