Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable auto line ending conversion in Windows Dockerfiles #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docker/Dockerfile.windows.1803
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $Progress
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
Invoke-WebRequest -UseBasicParsing https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/MinGit-2.21.0-64-bit.zip -OutFile git.zip; `
Expand-Archive git.zip -DestinationPath C:\git;
RUN C:\git\cmd\git.exe config --system core.autocrlf false

FROM mcr.microsoft.com/powershell:nanoserver-1803
COPY --from=git /git /git
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.windows.1809
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $Progress
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
Invoke-WebRequest -UseBasicParsing https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/MinGit-2.21.0-64-bit.zip -OutFile git.zip; `
Expand-Archive git.zip -DestinationPath C:\git;
RUN C:\git\cmd\git.exe config --system core.autocrlf false

FROM mcr.microsoft.com/powershell:nanoserver-1809
COPY --from=git /git /git
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.windows.1903
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $Progress
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
Invoke-WebRequest -UseBasicParsing https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/MinGit-2.21.0-64-bit.zip -OutFile git.zip; `
Expand-Archive git.zip -DestinationPath C:\git;
RUN C:\git\cmd\git.exe config --system core.autocrlf false

FROM mcr.microsoft.com/powershell:nanoserver-1903
COPY --from=git /git /git
Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile.windows.1909
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SHELL ["powershell.exe", "-Command", "$ErrorActionPreference = 'Stop'; $Progress
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; `
Invoke-WebRequest -UseBasicParsing https://github.com/git-for-windows/git/releases/download/v2.21.0.windows.1/MinGit-2.21.0-64-bit.zip -OutFile git.zip; `
Expand-Archive git.zip -DestinationPath C:\git;
RUN C:\git\cmd\git.exe config --system core.autocrlf false

FROM mcr.microsoft.com/powershell:nanoserver-1909
COPY --from=git /git /git
Expand Down