Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 1.56 KB
FROM ubuntu:wily
MAINTAINER d-abe <abe@flup.jp>
ENV PATH /opt/swift/usr/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
WORKDIR /root
RUN apt-get update \
&& apt-get install -q -y libpq-dev nodejs npm git wget clang dh-autoreconf pkg-config libkqueue0 libkqueue-dev libbsd-dev libblocksruntime-dev libicu-dev build-essential libhttp-parser-dev libcurl4-openssl-dev libhiredis-dev \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s `which nodejs` /usr/local/bin/node \
&& wget https://swift.org/builds/development/ubuntu1510/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a/swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-ubuntu15.10.tar.gz \
&& tar zxf swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-ubuntu15.10.tar.gz \
&& mkdir -p /opt/swift \
&& mv swift-DEVELOPMENT-SNAPSHOT-2016-03-01-a-ubuntu15.10/usr/ /opt/swift/ \
&& git clone https://github.com/apple/swift-corelibs-libdispatch.git \
&& cd swift-corelibs-libdispatch \
&& git submodule init && git submodule update \
&& sh ./autogen.sh \
&& ./configure --with-swift-toolchain=/opt/swift/usr --prefix=/opt/swift/usr \
&& make \
&& make install \
&& cd .. \
&& npm install -g gulp \
&& mkdir /work \
&& cd /work \
&& npm install gulp gulp-process gulp-watch
COPY gulpfile.js /work/gulpfile.js
COPY build.sh /work/build.sh
COPY Makefile /work/Makefile
COPY make_ccflags_for_module_maps /work/make_ccflags_for_module_maps
COPY dev.sh /dev.sh
RUN chmod +x /work/build.sh \
&& chmod +x /work/make_ccflags_for_module_maps \
&& chmod +x /dev.sh
WORKDIR /src
CMD ["/dev.sh"]