File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ FROM phusion/baseimage:0.9.17
3+ MAINTAINER Haris Amin <aminharis7@gmail.com>
4+
5+ # Use baseimage-docker's init system.
6+ CMD ["/sbin/my_init" ]
7+
8+ RUN apt-get update && apt-get upgrade -y && apt-get install -y curl wget git make
9+
10+ # Ubuntu Swift Requirements: https://github.com/apple/swift#system-requirements
11+ RUN sudo apt-get install -y git cmake ninja-build clang uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config
12+ RUN sudo apt-get install -y clang-3.6
13+ RUN sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
14+ RUN sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
15+
16+ # Download Swift Ubuntu 14.04 Snapshot
17+ RUN wget https://swift.org/builds/ubuntu1404/swift-2.2-SNAPSHOT-2015-12-01-b/swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz
18+
19+ RUN tar -xvzf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04.tar.gz && cd swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04
20+
21+ # Move extracted Swift Snapshot
22+ RUN rsync -a -v --ignore-existing . /usr
23+
24+ # Clean up
25+ RUN cd / && rm -rf swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu14.04*
26+
27+ # Clean up APT when done.
28+ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
29+
30+ # Set Swfit Path
31+ ENV PATH /usr/bin:$PATH
32+
33+ # Print Installed Swift Version
34+ RUN swift --version
You can’t perform that action at this time.
0 commit comments