Skip to content
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

Dockerfile: Detect runtime dependencies automatically #4019

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Dockerfile: Detect runtime dependencies automatically #4019

merged 1 commit into from
Apr 11, 2023

Conversation

sando38
Copy link
Contributor

@sando38 sando38 commented Apr 7, 2023

Hi @badlop

thought this little change may be interesting for you as well. The Dockerfile detects the required runtime dependencies automatically and installs them in the runtime stage. This change only affects METHOD=direct.

libcap2 and tini can't be auto-detected. libcap2 has been renamed in Alpine version 3.17, hence the Dockerfile is not compatible with Alpine versions <3.17

I have tested it on my machine without any obvious errors, but it would be great if you could check the build result as well if you consider to merge it. We could adapt this also in processone/docker-ejabberd.

Thanks and best regards!

Only libcap2 and tini can't be auto-detected. libcap2 has been renamed in Alpine version 3.17, hence the Dockerfile is not compatible with Alpine versions <3.17
@coveralls
Copy link

Coverage Status

Coverage: 33.131% (+0.002%) from 33.128% when pulling b2107e5 on sando38:master into 99e51a2 on processone:master.

@badlop badlop merged commit 401bded into processone:master Apr 11, 2023
@badlop badlop added this to the ejabberd 23.04 milestone Apr 11, 2023
@badlop badlop added the Packaging:Container Container image from GitHub Packages label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packaging:Container Container image from GitHub Packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants