Skip to content

Commit

Permalink
🐋 Fix line endings issue with docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
JSkimming committed Jun 10, 2019
1 parent db93350 commit 84b8fdf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine

ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

RUN apk add --update dos2unix && rm -rf /var/cache/apk/*

WORKDIR /work

# Copy just the solution and proj files to make best use of docker image caching.
Expand All @@ -28,6 +30,8 @@ RUN dotnet restore

COPY . .

RUN dos2unix -k -q ./coverage.sh

RUN ./coverage.sh netcoreapp2.1 Debug

########################################################################################################################
Expand All @@ -36,6 +40,8 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.2-alpine

ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true

RUN apk add --update dos2unix && rm -rf /var/cache/apk/*

WORKDIR /work

# Copy just the solution and proj files to make best use of docker image caching.
Expand All @@ -48,4 +54,6 @@ RUN dotnet restore

COPY . .

RUN dos2unix -k -q ./coverage.sh

RUN ./coverage.sh netcoreapp2.1 Debug

0 comments on commit 84b8fdf

Please sign in to comment.