From 5f8b8ff61b68c28d6abc676b0bc98a937a6604e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Wed, 20 Apr 2022 12:55:37 +0200 Subject: [PATCH] Update recommended `Dockerfile` instructions to run as PID 1 --- docs/best-practices/deployment.md | 2 +- tests/Dockerfile-production | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/best-practices/deployment.md b/docs/best-practices/deployment.md index 7e59e32..d5b9c14 100644 --- a/docs/best-practices/deployment.md +++ b/docs/best-practices/deployment.md @@ -524,7 +524,7 @@ be achieved by using a `Dockerfile` with the following contents: EXPOSE 8080 USER nobody:nobody - ENTRYPOINT php public/index.php + ENTRYPOINT ["php", "public/index.php"] ``` Simply place the `Dockerfile` in your project directory like this: diff --git a/tests/Dockerfile-production b/tests/Dockerfile-production index f6c4452..ea4288e 100644 --- a/tests/Dockerfile-production +++ b/tests/Dockerfile-production @@ -26,4 +26,4 @@ ENV X_LISTEN 0.0.0.0:8080 EXPOSE 8080 USER nobody:nobody -ENTRYPOINT php public/index.php +ENTRYPOINT ["php", "public/index.php"]