Files
skills-publish-packages/.github/steps/2-add-a-dockerfile.md
T
2023-11-16 13:14:44 -08:00

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

  1. In the cd branch, create Dockerfile at the project root and include:
    FROM nginx:1.24-alpine
    COPY . /usr/share/nginx/html
    
  2. Commit your changes.
  3. Wait about 20 seconds then refresh this page (the one you're following instructions from). GitHub Actions will automatically update to the next step.