use `dos2unix` in Dockerfile

This commit is contained in:
slashtechno 2022-12-17 21:46:51 -06:00
parent 7a3a1fa761
commit 7a1b4e992d
Signed by: slashtechno
GPG Key ID: 8EC1D9D9286C2B17
1 changed files with 4 additions and 0 deletions

View File

@ -25,11 +25,15 @@ RUN apt-get -y update && apt-get install -y --fix-missing \
RUN apt-get clean RUN apt-get clean
RUN rm -rf /tmp/* /var/tmp/* RUN rm -rf /tmp/* /var/tmp/*
ENV CFLAGS=-static ENV CFLAGS=-static
# Install dos2unix
RUN apt-get install -y dos2unix
# Upgrade pip # Upgrade pip
RUN pip3 install --upgrade pip RUN pip3 install --upgrade pip
# Copy directory to container # Copy directory to container
WORKDIR /app WORKDIR /app
COPY . ./ COPY . ./
# Run dos2unix on all files in /app
RUN dos2unix /app/*
# Install from requirements.txt # Install from requirements.txt
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
# Install wait-for-it so this can easily be used with docker-compose # Install wait-for-it so this can easily be used with docker-compose