use `dos2unix` in Dockerfile
This commit is contained in:
parent
7a3a1fa761
commit
7a1b4e992d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue