Commit MetaInfo

修订版b384e9dbbbf142d02be169e99a6bd1bbabb96111 (tree)
时间2022-06-09 23:55:06
作者Erik <erikgronwal@user...>
CommiterErik

Log Message

Regular updates

更改概述

差异

--- a/composer.md
+++ b/composer.md
@@ -49,7 +49,7 @@ This command changes only the `composer.lock` file.
4949
5050 | Command | Description |
5151 | --- | --- |
52-| `composer require vendor/package`. | Adds `package` from `vendor` to composer.json's `require` section and installs it |
52+| `composer require vendor/package` | Adds `package` from `vendor` to composer.json's `require` section and installs it |
5353 | --- | --- |
5454 | `composer require vendor/package --dev` | Adds `package` from `vendor` to composer.json's `require-dev` section and installs it. |
5555
--- a/dockerfile.md
+++ b/dockerfile.md
@@ -47,6 +47,20 @@ ADD file.xyz /file.xyz
4747 COPY --chown=user:group host_file.xyz /path/container_file.xyz
4848 ```
4949
50+### Run commands in strict shell
51+
52+```docker
53+ENV my_var
54+SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
55+
56+# With strict mode:
57+RUN false # fails build like using &&
58+RUN echo "$myvar" # will throw error due to typo
59+RUN true | false # will bail out of pipe
60+```
61+
62+Using `shell` will turn on strict mode for shell commands.
63+
5064 ### Onbuild
5165
5266 ```docker
Show on old repository browser