You may base your own Docker image from the swiftenv image, you may then install any Swift version you desire.
FROM kylef/swiftenv
RUN swiftenv install 3.0
You may pull down the image and use it directly:
$ docker pull kylef/swiftenv
$ docker run -i -t --entrypoint /bin/sh kylef/swiftenv
# swiftenv --version
swiftenv 1.2.0
FROM ubuntu:15.10
MAINTAINER Kyle Fuller <[email protected]>
RUN apt-get -qq update
# Install swift run-time and build dependencies
RUN apt-get -qq -y install lsb-release curl git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config
# Install swiftenv
ENV SWIFTENV_ROOT /usr/local
ADD https://github.com/kylef/swiftenv/archive/1.2.0.tar.gz /tmp/swiftenv.tar.gz
RUN tar -xzf /tmp/swiftenv.tar.gz -C /usr/local/ --strip 1
# Add swiftenv shims to PATH
ENV PATH /usr/local/shims:$PATH
Content type
Image
Digest
Size
244.3 MB
Last updated
almost 10 years ago
docker pull kylef/swiftenv