From 34d62c902154d98d26ca331da4f13f2fc03b0062 Mon Sep 17 00:00:00 2001 From: Luis Garcia Date: Sun, 8 Sep 2024 01:28:11 -0600 Subject: [PATCH] Docker: Add dos2unix --- Dockerfile.alpine | 5 +++-- Dockerfile.slim | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index a5e6b0d..4966bfb 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -4,7 +4,7 @@ ENV PUID=1000 ENV PGID=1000 ENV GOSU_VERSION 1.17 -RUN apk add --no-cache tini +RUN apk add --no-cache tini dos2unix # Install gosu RUN set -eux; \ @@ -42,7 +42,8 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -RUN chmod +x *.sh +RUN chmod +x *.sh && \ + dos2unix *.sh ENTRYPOINT ["tini", "--", "/app/entrypoint.sh"] CMD ["python", "-u", "main.py"] diff --git a/Dockerfile.slim b/Dockerfile.slim index 1ad04d8..1ae6a2f 100644 --- a/Dockerfile.slim +++ b/Dockerfile.slim @@ -4,7 +4,7 @@ ENV PUID=1000 ENV PGID=1000 RUN apt-get update && \ - apt-get install tini gosu --yes --no-install-recommends && \ + apt-get install tini gosu dos2unix --yes --no-install-recommends && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* @@ -16,7 +16,8 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . -RUN chmod +x *.sh +RUN chmod +x *.sh && \ + dos2unix *.sh ENTRYPOINT ["/bin/tini", "--", "/app/entrypoint.sh"] CMD ["python", "-u", "main.py"]