Closed github-learning-lab[bot] closed 4 years ago
The Dockerfile
contains a set of instructions that get stored in a Docker Image
.
We will use a very simple Dockerfile
. If you'd like, you can learn more about Dockerfiles.
Dockerfile
located on the add-dockerfile
branch in the root of the repositoryFROM nginx:1.17
COPY . /usr/share/nginx/html
add-dockerfile
branchWhoa, now things are running! This may take a few minutes.
After committing the Dockerfile
, the repository had the components it needed to start the CD workflow.
This might take a tiny amount of time, so grab your popcorn 🍿 and wait. I'll respond one your pipeline has finished running, until then... sit tight!
You can click the Actions
tab to view your workflow in progress. Make sure you come back to this pull request.
Something went wrong in your workflow.
Navigate to the Actions tab to troubleshoot. Recommit the necessary fixes to this repository.
It looks like your workflow run was successful. Awesome!
You now have a Docker image stored in the GitHub Packages.
You may need to switch to the master
branch to see your package count increase.
You should now see a package named tic-tac-toe
. 🎉
I'll go ahead and merge this pull request. I'll give you the next steps in the next issue.
Creating a Dockerfile 🐳
You may have noticed that your workflow didn't run as expected. That's because we don't have a
Dockerfile
in our repository yet!We will add a
Dockerfile
in this pull request. I'll leave a comment with instructions to help you. 😄