fix: volume instruction moved for all stages

* /app/var shall be a volume on all stages to keep the overlay clean. Fixes #602

* Update Dockerfile

---------

Co-authored-by: Oliver Skibbe <oliver.skibbe@hdi.de>
Co-authored-by: Maxime Helias <maximehelias16@gmail.com>
This commit is contained in:
Oliver Skibbe
2024-04-22 09:51:02 +02:00
committed by GitHub
parent e022f7333d
commit c7c788aca1

View File

@@ -13,6 +13,8 @@ FROM frankenphp_upstream AS frankenphp_base
WORKDIR /app WORKDIR /app
VOLUME /app/var/
# persistent / runtime deps # persistent / runtime deps
# hadolint ignore=DL3008 # hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -50,7 +52,6 @@ CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]
FROM frankenphp_base AS frankenphp_dev FROM frankenphp_base AS frankenphp_dev
ENV APP_ENV=dev XDEBUG_MODE=off ENV APP_ENV=dev XDEBUG_MODE=off
VOLUME /app/var/
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"