diff --git a/docs/cn/embed.md b/docs/cn/embed.md index c4333161..2a77ce0c 100644 --- a/docs/cn/embed.md +++ b/docs/cn/embed.md @@ -59,6 +59,11 @@ composer dump-env prod ./build-static.sh ``` + > [!CAUTION] + > + > 某些 .dockerignore 文件(例如默认的 [symfony-docker .dockerignore](https://github.com/dunglas/symfony-docker/blob/main/.dockerignore))会忽略 vendor + > 文件夹和环境文件。在构建之前,请务必调整或删除 .dockerignore 文件。 + 2. 构建: ```console diff --git a/docs/embed.md b/docs/embed.md index 5b60b7b9..0dde508a 100644 --- a/docs/embed.md +++ b/docs/embed.md @@ -59,6 +59,11 @@ The easiest way to create a Linux binary is to use the Docker-based builder we p ./build-static.sh ``` + > [!CAUTION] + > + > Some `.dockerignore` files (e.g. default [Symfony Docker `.dockerignore`](https://github.com/dunglas/symfony-docker/blob/main/.dockerignore)) + > will ignore the `vendor/` directory and `.env` files. Be sure to adjust or remove the `.dockerignore` file before the build. + 2. Build: ```console diff --git a/docs/fr/embed.md b/docs/fr/embed.md index 261f3afc..66bd4283 100644 --- a/docs/fr/embed.md +++ b/docs/fr/embed.md @@ -59,6 +59,11 @@ La manière la plus simple de créer un binaire Linux est d'utiliser le builder ./build-static.sh ``` + > [!CAUTION] + > + > Certains fichiers `.dockerignore` (par exemple celui fourni par défaut par [Symfony Docker](https://github.com/dunglas/symfony-docker/blob/main/.dockerignore)) + > empêchent la copie du dossier `vendor/` et des fichiers `.env`. Assurez-vous d'ajuster ou de supprimer le fichier `.dockerignore` avant le build. + 2. Construisez: ```console