From 0cc0739c051f0821b426203aee286edaaaafed3d Mon Sep 17 00:00:00 2001 From: Edward Almanzar Date: Wed, 2 Oct 2024 14:58:54 -0400 Subject: [PATCH] Revert "add docs to fix nginx-entrypoint.sh: no such file on windows" This reverts commit 395d7cfa3f724073adb702d43195eb5452d89e06. --- docs/error-nginx-entrypoint.md | 10 ---------- images/custom/Containerfile | 5 ++--- 2 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 docs/error-nginx-entrypoint.md diff --git a/docs/error-nginx-entrypoint.md b/docs/error-nginx-entrypoint.md deleted file mode 100644 index 2a1c5048..00000000 --- a/docs/error-nginx-entrypoint.md +++ /dev/null @@ -1,10 +0,0 @@ -# Resolving Docker `nginx-entrypoint.sh` Script Not Found Error on Windows - -If you're encountering the error `exec /usr/local/bin/nginx-entrypoint.sh: no such file or directory` in a Docker container on Windows, follow these steps to resolve the issue. - -## 1. Check Line Endings -On Windows, files often have `CRLF` line endings, while Linux systems expect `LF`. This can cause issues when executing shell scripts in Linux containers. - -- **Convert Line Endings using `dos2unix`:** - ```bash - dos2unix resources/nginx-entrypoint.sh \ No newline at end of file diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 9b8c30a0..a35b93fe 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -127,9 +127,8 @@ RUN export APP_INSTALL_ARGS="" && \ --verbose \ /home/frappe/frappe-bench && \ cd /home/frappe/frappe-bench && \ - echo "{}" > sites/common_site_config.json && - # \ - # find apps -mindepth 1 -path "*/.git" | xargs rm -fr + echo "{}" > sites/common_site_config.json && \ + find apps -mindepth 1 -path "*/.git" | xargs rm -fr FROM base AS backend