Using Docker for WIN10 to build the image, the newline character of the copy-to-mirror source file has been changed.

Source: Internet
Author: User
The git diff command is as follows:

# git diff selenium60.shdiff --git a/selenium60.sh b/selenium60.shindex 6ce5f9f..8893fb3 100644--- a/selenium60.sh+++ b/selenium60.sh@@ -1,2 +1,2 @@-#!/bin/sh+#!/bin/sh^M java -Dphantomjs.binary.path=vendor/bin/phantomjs  -Dwebdriver.firefox.profile=default -Dwebdriver.reap_profile=true -jar vendor/bin/selenium-standalone.jar -timeout 60 -browserTimeout 60\ No newline at end of file

Because I want to continue to pull update code in the production environment with git, so once the line break is changed, you can't update the code ...
Is there any way for Docker not to change my line break?

Reply content:

The git diff command is as follows:

# git diff selenium60.shdiff --git a/selenium60.sh b/selenium60.shindex 6ce5f9f..8893fb3 100644--- a/selenium60.sh+++ b/selenium60.sh@@ -1,2 +1,2 @@-#!/bin/sh+#!/bin/sh^M java -Dphantomjs.binary.path=vendor/bin/phantomjs  -Dwebdriver.firefox.profile=default -Dwebdriver.reap_profile=true -jar vendor/bin/selenium-standalone.jar -timeout 60 -browserTimeout 60\ No newline at end of file

Because I want to continue to pull update code in the production environment with git, so once the line break is changed, you can't update the code ...
Is there any way for Docker not to change my line break?

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.