A base Docker image for Exercism's Swift Test Runner.
The image is based on the official Swift Docker image and has been modified to reduce its size by removing unused software.
Docker is required to run tests locally.
Running bin/ci_build.sh will build the Docker image and test it using a dummy Swift CLI project.
The build log will include some meta-information about the Docker image.
To reduce image size the following techics are applied:
- Docker number of layers is minimal.
- All binaries that are not take part in build and test process are removed.
- Required binaries are stripped with
strip.
Note
Any new techniques should not degrade the build performance of Exercism track tools that are based on this image.
This repository includes Dockerfile from swiftlang/swift-docker, originally licensed under the Apache License 2.0. The rest of the repository is licensed under the AGPL-3.0.