Created
December 4, 2015 13:49
-
-
Save jskeates/edc70c0e00ecc1d2b13b to your computer and use it in GitHub Desktop.
Swift Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:15.10 | |
MAINTAINER Jake Skeates <[email protected]> | |
RUN apt-get update \ | |
&& apt-get install -y clang curl libpython2.7 libicu55 \ | |
&& mkdir /opt/swift \ | |
&& curl https://swift.org/builds/ubuntu1510/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10.tar.gz \ | |
-o /opt/swift/swift.tar.gz \ | |
&& tar xzf /opt/swift/swift.tar.gz -C /opt/swift --strip-components=1 \ | |
&& rm /opt/swift/swift.tar.gz \ | |
&& apt-get purge -y curl \ | |
&& apt-get -y autoremove \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV PATH=/opt/swift/usr/bin:$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment