Skip to content

Commit 3061578

Browse files
authored
Merge pull request #24874 from github/repo-sync
repo sync
2 parents 53afd39 + 4873497 commit 3061578

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/actions/creating-actions/dockerfile-support-for-github-actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ If you define `entrypoint` in an action's metadata file, it will override the `E
4747

4848
The Docker `ENTRYPOINT` instruction has a _shell_ form and _exec_ form. The Docker `ENTRYPOINT` documentation recommends using the _exec_ form of the `ENTRYPOINT` instruction. For more information about _exec_ and _shell_ form, see the [ENTRYPOINT reference](https://docs.docker.com/engine/reference/builder/#entrypoint) in the Docker documentation.
4949

50+
You should not use `WORKDIR` to specify your entrypoint in your Dockerfile. Instead, you should use an absolute path. For more information, see [WORKDIR](#workdir).
51+
5052
If you configure your container to use the _exec_ form of the `ENTRYPOINT` instruction, the `args` configured in the action's metadata file won't run in a command shell. If the action's `args` contain an environment variable, the variable will not be substituted. For example, using the following _exec_ format will not print the value stored in `$GITHUB_SHA`, but will instead print `"$GITHUB_SHA"`.
5153

5254
```dockerfile

0 commit comments

Comments
 (0)