From 16e500603dd0ac61b72219541d8e84ec764362be Mon Sep 17 00:00:00 2001 From: Matteo Hausner Date: Tue, 3 Mar 2020 20:38:20 +0100 Subject: [PATCH] Fix line endings of entrypoint script on Windows Use dos2unix to ensure that the line endings of the entrypoint script are automatically corrected. Please check out https://willi.am/blog/2016/08/11/docker-for-windows-dealing-with-windows-line-endings/ for more details regarding this issue. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ecf5737..bd86d69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -139,3 +139,6 @@ ENTRYPOINT ["/usr/bin/crossbuild"] CMD ["/bin/bash"] WORKDIR /workdir COPY ./assets/crossbuild /usr/bin/crossbuild + +# Ensure that the line endings of the entrypoint script are correct to avoid problems when building on Windows +RUN apt-get install -y dos2unix && dos2unix /usr/bin/crossbuild && apt-get --purge remove -y dos2unix && rm -rf /var/lib/apt/lists/*