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

add support for alpine-based images #231

Open
zg opened this issue Apr 22, 2021 · 4 comments
Open

add support for alpine-based images #231

zg opened this issue Apr 22, 2021 · 4 comments

Comments

@zg
Copy link

zg commented Apr 22, 2021

Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox. A container requires no more than 8 MB and a minimal installation to disk requires around 130 MB of storage. The slimness of Alpine Linux makes it an attractive base image for use in production environments, namely Kubernetes, where it incurs a smaller startup latency and reduces image size in a Docker registry.

@stevapple
Copy link
Contributor

You’ll need to port Swift to musl before you can get an Alpine image. Of course, we welcome such effort very much.

@Gustl22
Copy link

Gustl22 commented Aug 21, 2023

See: swiftlang/swift#47209

@finagolfin
Copy link
Member

@al45tair, any plans for this, building on your Musl work?

@al45tair
Copy link
Contributor

al45tair commented Jun 3, 2024

I think it's probably worth returning to this question after WWDC. Alpine wasn't the focus of what I was up to with Musl, and making it work is in principle possible, but in practice I think we'd need to make significant upstream changes to Musl itself (which would then need to filter down into Alpine). I don't want to rule it out, because I know people will be interested in Alpine support, and the work I've been doing will make it easier, but it's still not trivial.

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

No branches or pull requests

5 participants