-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change the base image in Dockerfile block (nginx:1.17 to nginx:1.24-alpine) #22
Conversation
nginx:1.24-alpine
docker run -dp 8080:80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the update @sinsukehlab! We'll also need to update the workflow for step 2 (see below) as it validates the contents of Dockerfile
.
To test your changes after you do this, you can:
- Create a new repository
- Push from your branch to the new repository's
main
branch - Run through the course in the new repository
These steps should flag any remaining problems with the changes.
publish-packages/.github/workflows/2-add-a-dockerfile.yml
Lines 61 to 66 in 530a46e
# Check the learner added intended contents to the file | |
- name: Verify Dockerfile contents | |
run: ./.github/script/check-file.sh | |
env: | |
FILE: "Dockerfile" | |
SEARCH: "FROM nginx:1.17" |
Verify Dockerfile contents
I have updated the workflow for Step 2. |
The workflow verified |
@sinsukehlab Thanks for the verification! I'll take a look at this from the content side ✨ |
@sinsukehlab 👋 - Just added a few minor content edits 👍 Let me know if you accept them and I'll get this merged ✅ |
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
example of running the docker command listed above Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
Co-authored-by: Courtney Wilson <77312589+cmwilson21@users.noreply.github.com>
@cmwilson21 Thanks for adding the edits. I have accepted them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the updates! 🎉
@cmwilson21 @hectorsector gentle reminder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your patience @sinsukehlab!
Why:
nginx:1.17 is vulnerable.
What's being changed:
README.md
-p 8080:80
to thedocker run
command2-add-a-dockerfile.yml
Check off the following: