mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 07:45:09 +00:00
add docs to fix nginx-entrypoint.sh: no such file on windows
This commit is contained in:
parent
a90dc29d68
commit
395d7cfa3f
2 changed files with 13 additions and 2 deletions
10
docs/error-nginx-entrypoint.md
Normal file
10
docs/error-nginx-entrypoint.md
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# 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
|
||||||
|
|
@ -127,8 +127,9 @@ RUN export APP_INSTALL_ARGS="" && \
|
||||||
--verbose \
|
--verbose \
|
||||||
/home/frappe/frappe-bench && \
|
/home/frappe/frappe-bench && \
|
||||||
cd /home/frappe/frappe-bench && \
|
cd /home/frappe/frappe-bench && \
|
||||||
echo "{}" > sites/common_site_config.json && \
|
echo "{}" > sites/common_site_config.json &&
|
||||||
find apps -mindepth 1 -path "*/.git" | xargs rm -fr
|
# \
|
||||||
|
# find apps -mindepth 1 -path "*/.git" | xargs rm -fr
|
||||||
|
|
||||||
FROM base AS backend
|
FROM base AS backend
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue