Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dockers/swift-kitura/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
44 lines (35 sloc)
1.56 KB
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: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"] |