Skip to content

feat: harden dockerfile#6

Merged
Fesaa merged 4 commits intoFesaa:masterfrom
jrschumacher:secure-dockerfile
Jan 6, 2025
Merged

feat: harden dockerfile#6
Fesaa merged 4 commits intoFesaa:masterfrom
jrschumacher:secure-dockerfile

Conversation

@jrschumacher
Copy link
Contributor

  • updated to support multiplatform builds
  • update to the latest stable version of Go
  • disable glibc, DWARF debugging, and symbol table
  • use docker scratch file
  • use non-root user (1000 can often be a sudoer on a host machine)
  • add healthcheck
  • add OCI labels

- updated to support multiplatform builds
- update to the latest stable version of Go
- disable glibc, DWARF debugging, and symbol table
- use docker scratch file
- use non-root user (1000 can often be a sudoer on a host machine)
- add healthcheck
- add OCI labels
Dockerfile Outdated
# Healthcheck
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "-f", "http://localhost:8080/health" ] || exit 1

LABEL maintainer="https://github.cowm/Fesaa/iCalMerger"
Copy link
Owner

Choose a reason for hiding this comment

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

Typo .cowm instead of .com

@Fesaa
Copy link
Owner

Fesaa commented Jan 4, 2025

Heya,

I'm not sure what the goal of this pull request is? Is there something you are missing in the current docker image?
See comments for concrete questions.

@jrschumacher
Copy link
Contributor Author

@Fesaa resolved this issues. BTW if you use the squash and merge it will make the git-history nice and clean and won't "steal" credit from outside contribution. Your call though.

CleanShot 2025-01-05 at 08 58 09@2x

@Fesaa
Copy link
Owner

Fesaa commented Jan 5, 2025

Looks good, I will merge tomorrow.

I'd rather not squash. Out of principle, in case there is a single commit, I'd want to revert. Have had some small annoying issues this way 😅

@Fesaa Fesaa merged commit aabf34b into Fesaa:master Jan 6, 2025
1 check passed
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