From 7a1b4e992d2db64b0b83b71523cbda8d0b6938e7 Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Sat, 17 Dec 2022 21:46:51 -0600 Subject: [PATCH] use `dos2unix` in Dockerfile --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5cee32b..6684172 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,11 +25,15 @@ RUN apt-get -y update && apt-get install -y --fix-missing \ RUN apt-get clean RUN rm -rf /tmp/* /var/tmp/* ENV CFLAGS=-static +# Install dos2unix +RUN apt-get install -y dos2unix # Upgrade pip RUN pip3 install --upgrade pip # Copy directory to container WORKDIR /app COPY . ./ +# Run dos2unix on all files in /app +RUN dos2unix /app/* # Install from requirements.txt RUN pip3 install -r requirements.txt # Install wait-for-it so this can easily be used with docker-compose