Last active
March 7, 2016 17:05
-
-
Save eyeplum/1a31af9be283f043bf12 to your computer and use it in GitHub Desktop.
Dockerfile for building latest Open Source Swift container
This file contains 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 | |
# Latest Swift Development Snapshot | |
ENV SWIFT_BRANCH development | |
ENV SWIFT_VERSION swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a | |
ENV SWIFT_PLATFORM ubuntu15.10 | |
# Install Dependencies | |
RUN apt-get update && \ | |
apt-get install -y \ | |
clang \ | |
libxml2 \ | |
libicu55 \ | |
libpython2.7 \ | |
wget && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# Install Swift keys | |
RUN wget -q -O - https://swift.org/keys/all-keys.asc | gpg --import - && \ | |
gpg --keyserver hkp://pool.sks-keyservers.net --refresh-keys Swift | |
# Download and install Swift | |
RUN SWIFT_ARCHIVE_NAME=$SWIFT_VERSION-$SWIFT_PLATFORM && \ | |
SWIFT_URL=https://swift.org/builds/$SWIFT_BRANCH/$(echo "$SWIFT_PLATFORM" | tr -d .)/$SWIFT_VERSION/$SWIFT_ARCHIVE_NAME.tar.gz && \ | |
wget $SWIFT_URL && \ | |
wget $SWIFT_URL.sig && \ | |
gpg --verify $SWIFT_ARCHIVE_NAME.tar.gz.sig && \ | |
tar -xvzf $SWIFT_ARCHIVE_NAME.tar.gz -C / --strip 1 && \ | |
rm -rf $SWIFT_ARCHIVE_NAME* /tmp/* /var/tmp/* | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment