5/7/2023 0 Comments Dockerfile from debian![]() ![]() For more information, see " Variables" and the WORKDIR reference in the Docker documentation. ![]() Before the action executes, GitHub will mount the GITHUB_WORKSPACE directory on top of anything that was at that location in the Docker image and set GITHUB_WORKSPACE as the working directory. It's recommended to not use the WORKDIR instruction in your Dockerfile. GitHub sets the working directory path in the GITHUB_WORKSPACE environment variable. It's recommended to use Docker images based on the Debian operating system.For example, use node:10 instead of node:latest. Use a version tag if it exists, preferably with a major version.It's recommended to use official Docker images.These are some best practices when setting the FROM argument: ![]() For more information, see the FROM reference in the Docker documentation. The first instruction in the Dockerfile must be FROM, which selects a Docker base image. For more information, see " Variables" and USER reference in the Docker documentation. ![]() Do not use the USER instruction in your Dockerfile, because you won't be able to access the GITHUB_WORKSPACE directory. USERÄocker actions must be run by the default Docker user (root). Ensure that you are familiar with how your Dockerfile interacts with GitHub Actions to prevent any unexpected behavior. Some Docker instructions interact with GitHub Actions, and an action's metadata file can override some Docker instructions. For more information about the instructions Docker supports, see " Dockerfile reference" in the Docker documentation. A Dockerfile contains instructions and arguments that define the contents and startup behavior of a Docker container. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |