2017-09-01 19:05:04 +03:00
|
|
|
FROM ubuntu:xenial
|
|
|
|
|
|
|
|
ENV workdir /app
|
|
|
|
|
|
|
|
RUN mkdir ${workdir}
|
|
|
|
WORKDIR ${workdir}
|
|
|
|
|
2017-12-22 03:28:54 +03:00
|
|
|
RUN apt-get update --fix-missing
|
2017-09-01 19:05:04 +03:00
|
|
|
RUN apt-get install curl git apt-transport-https --assume-yes
|
|
|
|
|
|
|
|
# Install Swift
|
2018-01-24 07:33:18 +03:00
|
|
|
RUN curl -o swift.tar.gz https://swift.org/builds/swift-4.0.3-release/ubuntu1604/swift-4.0.3-RELEASE/swift-4.0.3-RELEASE-ubuntu16.04.tar.gz
|
2017-09-01 19:05:04 +03:00
|
|
|
RUN tar -zxf swift.tar.gz
|
|
|
|
RUN rm swift.tar.gz
|
2018-01-24 07:33:18 +03:00
|
|
|
ENV PATH="${workdir}/swift-4.0.3-RELEASE-ubuntu16.04/usr/bin:${PATH}"
|
2017-09-01 19:05:04 +03:00
|
|
|
|
|
|
|
# Add nodejs package source
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
|
|
|
|
|
|
|
# Add .NET core package sources
|
|
|
|
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
|
|
|
|
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
|
|
|
|
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install nodejs maven default-jdk clang binutils golang-go --assume-yes
|
|
|
|
RUN apt-get install dotnet-sdk-2.0.0 --assume-yes
|
|
|
|
|
2017-10-29 19:19:11 +03:00
|
|
|
# Install Boost for C++
|
|
|
|
RUN apt-get install libboost-all-dev --assume-yes
|
|
|
|
|
2018-02-07 00:10:36 +03:00
|
|
|
# Install Rust
|
|
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
|
2017-09-01 19:05:04 +03:00
|
|
|
ENV PATH="${workdir}/node_modules/.bin:${PATH}"
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
ENV CI=true
|
2017-11-25 02:41:07 +03:00
|
|
|
RUN npm install --unsafe-perm
|