Skip to content

Switch to Docker Hardened Image for base, split into multi-stage build#427

Open
mbacon-renci wants to merge 3 commits into
DugModel2.0from
hardened
Open

Switch to Docker Hardened Image for base, split into multi-stage build#427
mbacon-renci wants to merge 3 commits into
DugModel2.0from
hardened

Conversation

@mbacon-renci
Copy link
Copy Markdown
Collaborator

This is an attempt to both update the base image to address vulnerabilities and to switch to a Docker Hardened Image to reduce the frequency of future updates.

For me this appears to work but I'm not sure I have the parameters right. Low priority merge but one that might save us some work down the road.

@mbacon-renci mbacon-renci self-assigned this Mar 20, 2026
@mbacon-renci
Copy link
Copy Markdown
Collaborator Author

Hold reviews on this -- there's definitely something still broken.

@mbacon-renci
Copy link
Copy Markdown
Collaborator Author

Okay, review request back on, when it's convenient.

Copy link
Copy Markdown
Contributor

@YaphetKG YaphetKG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we revert back the home dir , and just change the image?

there are specific dir that are being mounted to and etc.. on the deployment files, changes here would mean changes there.

Unless there is any real reason for moving stuff around , we should avoid doing so.

@mbacon-renci
Copy link
Copy Markdown
Collaborator Author

It's a little more complicated with DHI, but I can probably do that. (I think. DHI puts some really funny constraints on in places.)

@mbacon-renci
Copy link
Copy Markdown
Collaborator Author

@YaphetKG I've put the home directory back and switched the executable user. I realized I could just copy /etc/passwd and shadow over instead of using adduser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants