fix(docker): target the dev stage when building for local development

docker-compose.override.yml only overrode the dockerfile, so it kept
inheriting target: final from docker-compose.yml — but Dockerfile.dev
is single-stage and has no final stage, so the dev build failed. Name
the stage in Dockerfile.dev and target it explicitly from the
override.
This commit is contained in:
2026-07-11 16:46:29 +02:00
parent 9087f91855
commit b3dc7a2298
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM dunglas/frankenphp:1-php8.4-alpine FROM dunglas/frankenphp:1-php8.4-alpine AS dev
RUN apk add --no-cache icu-dev libzip-dev \ RUN apk add --no-cache icu-dev libzip-dev \
&& docker-php-ext-install -j$(nproc) intl opcache zip \ && docker-php-ext-install -j$(nproc) intl opcache zip \
+1
View File
@@ -4,6 +4,7 @@ services:
graph: graph:
build: build:
dockerfile: Dockerfile.dev dockerfile: Dockerfile.dev
target: dev
volumes: volumes:
- .:/app - .:/app
- ./vendor:/app/vendor - ./vendor:/app/vendor