2015-10-20 16:05:17 +00:00
|
|
|
# Dockerfile that creates a container suitable to build dotnet-cli
|
2015-10-29 17:02:14 +00:00
|
|
|
FROM debian:jessie
|
2015-10-20 16:05:17 +00:00
|
|
|
|
2015-10-29 17:02:14 +00:00
|
|
|
# This could become a "microsoft/coreclr" image, since it just installs the dependencies for CoreCLR (and stdlib)
|
2015-10-21 22:21:14 +00:00
|
|
|
# Install CoreCLR dependencies
|
2015-10-29 17:02:14 +00:00
|
|
|
RUN apt-get update && \
|
2015-10-21 22:21:14 +00:00
|
|
|
apt-get -qqy install unzip curl libicu-dev libunwind8 gettext libssl-dev libcurl3-gnutls zlib1g
|
2015-10-22 06:41:38 +00:00
|
|
|
|
2015-10-29 17:33:39 +00:00
|
|
|
# No longer need to install DNX since it is embedded (and soon will be gone!)
|
|
|
|
|
2015-10-21 22:21:14 +00:00
|
|
|
# Install Build Prereqs
|
2015-10-29 17:02:14 +00:00
|
|
|
RUN echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.6 main" | tee /etc/apt/sources.list.d/llvm.list && \
|
|
|
|
curl http://llvm.org/apt/llvm-snapshot.gpg.key | apt-key add - && \
|
|
|
|
apt-get update && \
|
2015-11-03 18:08:59 +00:00
|
|
|
apt-get install -y debhelper build-essential devscripts git liblttng-ust-dev lldb-3.6-dev lldb-3.6 clang cmake
|
2015-10-21 22:21:14 +00:00
|
|
|
|
|
|
|
# Use clang as c++ compiler
|
|
|
|
RUN update-alternatives --set c++ /usr/bin/clang++
|
2015-10-20 16:05:17 +00:00
|
|
|
|
2015-11-11 01:20:18 +00:00
|
|
|
# Install azure cli. We need this to publish atrifacts.
|
2015-11-11 01:49:33 +00:00
|
|
|
RUN apt-get -y install nodejs-legacy && \
|
|
|
|
apt-get -y install npm && \
|
2015-11-11 01:20:18 +00:00
|
|
|
npm install -g azure-cli
|
|
|
|
|
2015-10-20 16:05:17 +00:00
|
|
|
# Set working directory
|
|
|
|
WORKDIR /opt/code
|