HUB
Sign inSign up

frolvlad/alpine-swift

By frolvlad

•Updated over 7 years ago

Hacked together image with Swift compiler based on Alpine (~640MB)

Image
1

2.4K

frolvlad/alpine-swift repository overview

Docker Stars Docker Pulls

⁠Swift Docker image

WARNING: This image is experimental and based on a glibc hack⁠!

This image is based on Alpine Linux image, which is only a 5MB image, and contains Swift compiler⁠.

Download size of this image is only:

⁠Usage Example

$ echo 'print("Hello World")' > qq.c
$ docker run --rm -v "$(pwd):/tmp" frolvlad/alpine-swift swiftc -static-executable -target x86_64-alpine-linux-musl /tmp/qq.swift

Once you have run these commands you will have qq executable in your current directory and if you execute it, you will get printed 'Hello World'!

Tag summary
Recent tags
Content type
Image
Digest
Size
220 MB
Last updated
over 7 years ago
docker pull frolvlad/alpine-swift:latest