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 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
|
||||||
|
|
Loading…
Reference in New Issue