Use GitHub Actions to publish your project to a Docker image.
You created a publishing workflow! 🎉
We will add a Dockerfile
to the cd
branch. The Dockerfile
contains a set of instructions that get stored in a Docker Image
. If you'd like, you can learn more about Dockerfiles.
- In the
cd
branch, createDockerfile
at the project root and include:FROM nginx:1.24-alpine COPY . /usr/share/nginx/html
- Commit your changes.
- Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.
Get help: Post in our discussion board • Review the GitHub status page
© 2023 GitHub • Code of Conduct • MIT License