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
Also consider [pinning base image versions](#pin-base-image-versions).
105
126
106
127
## Exclude with .dockerignore
@@ -639,10 +660,10 @@ RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
639
660
```
640
661
641
662
For more information about `ADD` or `COPY`, see the following:
663
+
642
664
-[Dockerfile reference for the ADD instruction](/reference/dockerfile.md#add)
643
665
-[Dockerfile reference for the COPY instruction](/reference/dockerfile.md#copy)
644
666
645
-
646
667
### ENTRYPOINT
647
668
648
669
The best use for `ENTRYPOINT` is to set the image's main command, allowing that
@@ -695,7 +716,6 @@ fi
695
716
exec"$@"
696
717
```
697
718
698
-
699
719
This script uses [the `exec` Bash command](https://wiki.bash-hackers.org/commands/builtin/exec) so that the final running application becomes the container's PID 1. This allows the application to receive any Unix signals sent to the container. For more information, see the [`ENTRYPOINT` reference](/reference/dockerfile.md#entrypoint).
700
720
701
721
In the following example, a helper script is copied into the container and run via `ENTRYPOINT` on
0 commit comments