Browse Source

Fix prod

imwald
Nuša Pukšič 3 months ago
parent
commit
c30e890f9a
  1. 5
      Dockerfile

5
Dockerfile

@ -89,13 +89,14 @@ COPY --link frankenphp/worker.Caddyfile /etc/caddy/worker.Caddyfile
# prevent the reinstallation of vendors at every changes in the source code # prevent the reinstallation of vendors at every changes in the source code
COPY --link composer.* symfony.* ./ COPY --link composer.* symfony.* ./
RUN set -eux; \
composer install --no-cache --prefer-dist --no-dev --no-autoloader --no-scripts --no-progress
# copy sources # copy sources
COPY --link . ./ COPY --link . ./
RUN rm -Rf frankenphp/ RUN rm -Rf frankenphp/
RUN set -eux; \
composer install --no-cache --prefer-dist --no-dev --no-progress
RUN set -eux; \ RUN set -eux; \
mkdir -p var/cache var/log; \ mkdir -p var/cache var/log; \
composer dump-autoload --classmap-authoritative --no-dev; \ composer dump-autoload --classmap-authoritative --no-dev; \

Loading…
Cancel
Save