Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions Taskfile.dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ tasks:
- task: build:apache
- task: build:frankenphp

lint:
desc: Apply a Dockerfile linter to all Dockerfiles
cmds:
- task: lint:fpm
- task: lint:apache
- task: lint:frankenphp

build:fpm:
desc: Build all PHP Docker image targets of the FPM variant
deps: [lint:fpm]
Expand Down Expand Up @@ -110,22 +117,23 @@ tasks:
lint:fpm:
desc: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
cmds:
- task: lint
- task: do:lint
vars: { DOCKERFILE_PATH: fpm/Dockerfile }

lint:apache:
desc: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
cmds:
- task: lint
- task: do:lint
vars: { DOCKERFILE_PATH: apache/Dockerfile }

lint:frankenphp:
desc: Apply a Dockerfile linter (https://github.com/hadolint/hadolint)
cmds:
- task: lint
- task: do:lint
vars: { DOCKERFILE_PATH: frankenphp/Dockerfile }

lint:
do:lint:
internal: true
cmds:
- docker run
--interactive
Expand Down
3 changes: 3 additions & 0 deletions apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# syntax=docker/dockerfile:1
# check=error=true

# Latest version of PHP base image: https://hub.docker.com/_/php/tags
FROM php:8.5.4-apache-trixie AS runtime

Expand Down
3 changes: 3 additions & 0 deletions fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# syntax=docker/dockerfile:1
# check=error=true

# Latest version of PHP base image: https://hub.docker.com/_/php/tags
FROM php:8.5.4-fpm-trixie AS runtime

Expand Down
3 changes: 3 additions & 0 deletions frankenphp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# syntax=docker/dockerfile:1
# check=error=true

# Latest version of FrankenPHP base image: https://hub.docker.com/r/dunglas/frankenphp/tags
FROM dunglas/frankenphp:1.12.1-php8.5.4-trixie AS runtime

Expand Down