Skip to content

Commit 08150ef

Browse files
subatoijc-clark
andauthored
[EDI] Dockerfile support for GitHub Actions (#56475)
Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com>
1 parent fd3005a commit 08150ef

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

content/actions/how-tos/writing-workflows/choosing-where-your-workflow-runs/running-jobs-in-a-container.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ redirect_from:
1717

1818
{% data reusables.actions.jobs.section-running-jobs-in-a-container %}
1919

20+
### Dockerfile instructions and overrides
21+
22+
A Dockerfile contains instructions and arguments that define the contents and startup behavior of a Docker container. For more information about the instructions Docker supports, see [Dockerfile reference](https://docs.docker.com/engine/reference/builder/) in the Docker documentation.
23+
24+
Some Docker instructions interact with {% data variables.product.prodname_actions %}, and an action's metadata file can override some Docker instructions. Ensure that you are familiar with how your Dockerfile interacts with {% data variables.product.prodname_actions %} to prevent any unexpected behavior.
25+
26+
For reference information, see [AUTOTITLE](/actions/reference/dockerfile-support-for-github-actions).
27+
2028
## Defining the container image
2129

2230
{% data reusables.actions.jobs.section-running-jobs-in-a-container-image %}

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ type: reference
1515

1616
{% data reusables.actions.enterprise-github-hosted-runners %}
1717

18-
## About Dockerfile instructions
19-
20-
A `Dockerfile` contains instructions and arguments that define the contents and startup behavior of a Docker container. For more information about the instructions Docker supports, see [Dockerfile reference](https://docs.docker.com/engine/reference/builder/) in the Docker documentation.
21-
22-
## Dockerfile instructions and overrides
23-
24-
Some Docker instructions interact with GitHub Actions, and an action's metadata file can override some Docker instructions. Ensure that you are familiar with how your Dockerfile interacts with {% data variables.product.prodname_actions %} to prevent any unexpected behavior.
25-
2618
### USER
2719

2820
Docker actions must be run by the default Docker user (root). Do not use the `USER` instruction in your `Dockerfile`, because you won't be able to access the `GITHUB_WORKSPACE` directory. For more information, see [AUTOTITLE](/actions/reference/variables-reference#default-environment-variables) and [USER reference](https://docs.docker.com/engine/reference/builder/#user) in the Docker documentation.

0 commit comments

Comments
 (0)