Use notepad++, go to edit -> EOL conversion -> change from CRLF to LF.
update: For VScode users: you can change CRLF to LF by clicking on CRLF present on lower right side in the status bar
More Related Contents:
- What is the difference between the ‘COPY’ and ‘ADD’ commands in a Dockerfile?
- Add a volume to Docker, but exclude a sub-folder
- What is linux equivalent of “host.docker.internal” [duplicate]
- Locating data volumes in Docker Desktop (Windows)
- Difference between RUN and CMD in a Dockerfile
- Dockerfile if else condition with external arguments
- Docker not found when building docker image using Docker Jenkins container pipeline
- Multiple FROMs – what it means
- How do I use Docker environment variable in ENTRYPOINT array?
- Understanding “VOLUME” instruction in DockerFile
- denied: requested access to the resource is denied: docker
- How to run kubectl commands inside a container?
- what is docker run -it flag?
- Docker – unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx
- Conditional ENV in Dockerfile
- How can I use a variable inside a Dockerfile CMD?
- How can I use a local file on container?
- Docker expose all ports or range of ports from 7000 to 8000
- Docker COPY from ubuntu absolute path
- Connect docker python to SQL server with pyodbc
- Is there a way to combine Docker images into 1 container?
- An error, “failed to solve with frontend dockerfile.v0”
- Difference between links and depends_on in docker_compose.yml
- How to pass ARG value to ENTRYPOINT?
- Multiple commands on docker ENTRYPOINT
- Docker: Using –password via the CLI is insecure. Use –password-stdin
- Dockerfile: Output of RUN instruction into a Variable
- Differences Between Dockerfile Instructions in Shell and Exec Form
- Can I mount same volume to multiple docker containers
- How to source a script with environment variables in a docker build process?