868 B
868 B
Step 2: Add a Dockerfile
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.
⌨️ Activity: Add a Dockerfile
- In the
cdbranch, createDockerfileat 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.