I want to write the following RUN command in the Dockerfile. But, docker is not preserving the new lines.
RUN echo "[repo]
name = YUM Repository
baseurl = https://example.com/packages/
enabled = 1
gpgcheck = 0" > /etc/yum.repos.d/Repo.repoxyz
I know that
at the end of each line escapes the new line. But, is there any way that I can write multiple lines preserving the new line?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…