Last active
February 7, 2017 16:15
-
-
Save e-kazakov/906e13adca0df3e20b6d68c93ce69754 to your computer and use it in GitHub Desktop.
Dockerfile of ubuntu image for running swift applications. Based on ibmcom/swift-ubuntu-runtime.
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:16.04 | |
USER root | |
ENV SWIFT_SNAPSHOT swift-3.0.2-RELEASE | |
ENV SWIFT_SNAPSHOT_LOWERCASE swift-3.0.2-release | |
ENV UBUNTU_VERSION ubuntu16.04 | |
ENV UBUNTU_VERSION_NO_DOTS ubuntu1604 | |
WORKDIR /root | |
RUN apt-get update \ | |
&& apt-get dist-upgrade -y \ | |
&& apt-get install -y \ | |
libcurl3 \ | |
wget \ | |
libxml2 \ | |
libbsd0 \ | |
&& apt-get clean \ | |
&& wget -q https://swift.org/builds/$SWIFT_SNAPSHOT_LOWERCASE/$UBUNTU_VERSION_NO_DOTS/$SWIFT_SNAPSHOT/$SWIFT_SNAPSHOT-$UBUNTU_VERSION.tar.gz \ | |
&& tar xzvf $SWIFT_SNAPSHOT-$UBUNTU_VERSION.tar.gz $SWIFT_SNAPSHOT-$UBUNTU_VERSION/usr/lib/swift/linux \ | |
&& rm $SWIFT_SNAPSHOT-$UBUNTU_VERSION.tar.gz \ | |
&& find $SWIFT_SNAPSHOT-$UBUNTU_VERSION/usr/lib/swift/linux -type f ! -name '*.so' -delete \ | |
&& rm -rf $SWIFT_SNAPSHOT-$UBUNTU_VERSION/usr/lib/swift/linux/*/ \ | |
&& cp -r ~/$SWIFT_SNAPSHOT-$UBUNTU_VERSION/usr/lib/swift /usr/lib/swift \ | |
&& rm -rf $SWIFT_SNAPSHOT-$UBUNTU_VERSION \ | |
&& apt-get remove -y gcc cpp sgml-base icu-devtools gcc-4.8 cpp-4.8 libc6-dev binutils manpages-dev manpages wget pkg-config perl \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment