8000 Allow Heredoc (or multi line instructions) in RUN command (in Dockerfile) · Issue #1554 · moby/moby · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Allow Heredoc (or multi line instructions) in RUN command (in Dockerfile) #1554
Closed
@brikou

Description

@brikou

An interesting use case would be to patch config file within dockerfile

RUN cat << EOF | patch --strip 0
--- /etc/apache2/conf.d/charset
--- /etc/apache2/conf.d/charset
@@ -3,4 +3,4 @@
 # have this encoding. It will override any encoding given in the files
 # in meta http-equiv or xml encoding tags.

-#AddDefaultCharset UTF-8
+AddDefaultCharset UTF-8
EOF

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0