From ec792948d18dc970cb8896c71caa24f13b18a6fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 8 Dec 2024 15:56:57 +0100 Subject: [PATCH] Update documentation for `Dockerfile` syntax, avoid `BuildKit` warnings --- docs/best-practices/deployment.md | 6 +++--- tests/integration/Dockerfile-basics | 4 ++-- tests/integration/Dockerfile-production | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/best-practices/deployment.md b/docs/best-practices/deployment.md index 5dc2680..a4bd2d4 100644 --- a/docs/best-practices/deployment.md +++ b/docs/best-practices/deployment.md @@ -558,10 +558,10 @@ be achieved by using a `Dockerfile` with the following contents: COPY public/ public/ COPY vendor/ vendor/ - ENV X_LISTEN 0.0.0.0:8080 + ENV X_LISTEN=0.0.0.0:8080 EXPOSE 8080 - ENTRYPOINT php public/index.php + ENTRYPOINT ["php", "public/index.php"] ``` === "Dockerfile for minimal production image" @@ -589,7 +589,7 @@ be achieved by using a `Dockerfile` with the following contents: # COPY src/ src/ COPY --from=build /app/vendor/ vendor/ - ENV X_LISTEN 0.0.0.0:8080 + ENV X_LISTEN=0.0.0.0:8080 EXPOSE 8080 USER nobody:nobody diff --git a/tests/integration/Dockerfile-basics b/tests/integration/Dockerfile-basics index b54d9cf..aa23e72 100644 --- a/tests/integration/Dockerfile-basics +++ b/tests/integration/Dockerfile-basics @@ -5,7 +5,7 @@ WORKDIR /app/ COPY public/ public/ COPY vendor/ vendor/ -ENV X_LISTEN 0.0.0.0:8080 +ENV X_LISTEN=0.0.0.0:8080 EXPOSE 8080 -ENTRYPOINT php public/index.php +ENTRYPOINT ["php", "public/index.php"] diff --git a/tests/integration/Dockerfile-production b/tests/integration/Dockerfile-production index 71211d0..502a00b 100644 --- a/tests/integration/Dockerfile-production +++ b/tests/integration/Dockerfile-production @@ -23,7 +23,7 @@ COPY public/ public/ # COPY src/ src/ COPY --from=build /app/vendor/ vendor/ -ENV X_LISTEN 0.0.0.0:8080 +ENV X_LISTEN=0.0.0.0:8080 EXPOSE 8080 USER nobody:nobody