You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
2021 年 7 月 docker 就开始支持 heredoc 语法。不必用
RUN apt-get update && apt-get install
这样的写法,可以这么写:RUN <<EOF apt-get update apt-get upgrade -y apt-get install -y ... EOF
详见 https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
Beta Was this translation helpful? Give feedback.
All reactions