Skip to content

Commit c7c788a

Browse files
riskersenOliver Skibbemaxhelias
authored
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>
1 parent e022f73 commit c7c788a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ FROM frankenphp_upstream AS frankenphp_base
1313

1414
WORKDIR /app
1515

16+
VOLUME /app/var/
17+
1618
# persistent / runtime deps
1719
# hadolint ignore=DL3008
1820
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -50,7 +52,6 @@ CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]
5052
FROM frankenphp_base AS frankenphp_dev
5153

5254
ENV APP_ENV=dev XDEBUG_MODE=off
53-
VOLUME /app/var/
5455

5556
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
5657

0 commit comments

Comments
 (0)