|
| 1 | +# Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | +# |
| 3 | +# Licensed under the Amazon Software License (the "License"). You may not use this file except in compliance with the License. |
| 4 | +# A copy of the License is located at |
| 5 | +# |
| 6 | +# http://aws.amazon.com/asl/ |
| 7 | +# |
| 8 | +# or in the "license" file accompanying this file. |
| 9 | +# This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied. |
| 10 | +# See the License for the specific language governing permissions and limitations under the License. |
| 11 | +# |
| 12 | + |
| 13 | +FROM ubuntu:14.04.5 |
| 14 | + |
| 15 | +# Building git from source code: |
| 16 | +# Ubuntu's default git package is built with broken gnutls. Rebuild git with openssl. |
| 17 | +########################################################################## |
| 18 | +RUN apt-get update \ |
| 19 | + && apt-get install -y --no-install-recommends \ |
| 20 | + wget=1.15-* python=2.7.5-* python2.7-dev=2.7.6-* fakeroot=1.20-* ca-certificates \ |
| 21 | + tar=1.27.1-* gzip=1.6-* zip=3.0-* autoconf=2.69-* automake=1:1.14.1-* \ |
| 22 | + bzip2=1.0.6-* file=1:5.14-* g++=4:4.8.2-* gcc=4:4.8.2-* imagemagick=8:6.7.7.10-* \ |
| 23 | + libbz2-dev=1.0.6-* libc6-dev=2.19-* libcurl4-openssl-dev=7.35.0-* libdb-dev=1:5.3.21~* \ |
| 24 | + libevent-dev=2.0.21-stable-* libffi-dev=3.1~rc1+r3.0.13-* libgeoip-dev=1.6.0-* libglib2.0-dev=2.40.2-* \ |
| 25 | + libjpeg-dev=8c-* libkrb5-dev=1.12+dfsg-* liblzma-dev=5.1.1alpha+20120614-* \ |
| 26 | + libmagickcore-dev=8:6.7.7.10-* libmagickwand-dev=8:6.7.7.10-* libmysqlclient-dev=5.5.58-* \ |
| 27 | + libncurses5-dev=5.9+20140118-* libpng12-dev=1.2.50-* libpq-dev=9.3.20-* libreadline-dev=6.3-* \ |
| 28 | + libsqlite3-dev=3.8.2-* libssl-dev=1.0.1f-* libtool=2.4.2-* libwebp-dev=0.4.0-* \ |
| 29 | + libxml2-dev=2.9.1+dfsg1-* libxslt1-dev=1.1.28-* libyaml-dev=0.1.4-* make=3.81-* \ |
| 30 | + patch=2.7.1-* xz-utils=5.1.1alpha+20120614-* zlib1g-dev=1:1.2.8.dfsg-* unzip=6.0-* curl=7.35.0-* \ |
| 31 | + && apt-get install -y -qq less=458-* groff=1.22.2-* \ |
| 32 | + && apt-get -qy build-dep git=1:1.9.1 \ |
| 33 | + && apt-get -qy install libcurl4-openssl-dev=7.35.0-* git-man=1:1.9.1-* liberror-perl=0.17-* \ |
| 34 | + && mkdir -p /usr/src/git-openssl \ |
| 35 | + && cd /usr/src/git-openssl \ |
| 36 | + && apt-get source git=1:1.9.1 \ |
| 37 | + && cd $(find -mindepth 1 -maxdepth 1 -type d -name "git-*") \ |
| 38 | + && sed -i -- 's/libcurl4-gnutls-dev/libcurl4-openssl-dev/' ./debian/control \ |
| 39 | + && sed -i -- '/TEST\s*=\s*test/d' ./debian/rules \ |
| 40 | + && dpkg-buildpackage -rfakeroot -b \ |
| 41 | + && find .. -type f -name "git_*ubuntu*.deb" -exec dpkg -i \{\} \; \ |
| 42 | + && rm -rf /usr/src/git-openssl \ |
| 43 | +# Install dependencies by all python images equivalent to buildpack-deps:jessie |
| 44 | +# on the public repos. |
| 45 | + && rm -rf /var/lib/apt/lists/* \ |
| 46 | + && apt-get clean |
| 47 | + |
| 48 | +RUN wget "https://bootstrap.pypa.io/get-pip.py" -O /tmp/get-pip.py \ |
| 49 | + && python /tmp/get-pip.py \ |
| 50 | + && pip install awscli==1.11.157 \ |
| 51 | + && rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/* |
| 52 | + |
| 53 | + |
| 54 | +# Install .NET CLI dependencies |
| 55 | +RUN apt-get update \ |
| 56 | + && apt-get install -y --no-install-recommends \ |
| 57 | + libc6=2.19-* \ |
| 58 | + libcurl3=7.35.0-* \ |
| 59 | + libgcc1=1:4.9.3-* \ |
| 60 | + libgssapi-krb5-2=1.12+dfsg-* \ |
| 61 | + libicu52=52.1-* \ |
| 62 | + liblttng-ust0=2.4.0-* \ |
| 63 | + libssl1.0.0=1.0.1f-* \ |
| 64 | + libunwind8=1.1-* \ |
| 65 | + libuuid1=2.20.1-* \ |
| 66 | + zlib1g=1:1.2.8.dfsg-* \ |
| 67 | + software-properties-common=0.92.37.8 \ |
| 68 | + && add-apt-repository ppa:ubuntu-toolchain-r/test -y \ |
| 69 | + && apt-get update \ |
| 70 | + && apt-get install -y libstdc++6=7.2.0-*\ |
| 71 | + && rm -rf /var/lib/apt/lists/* |
| 72 | + |
| 73 | +# Install .NET Core SDK |
| 74 | +ENV DOTNET_SDK_VERSION 2.0.3 |
| 75 | +ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz |
| 76 | +ENV DOTNET_SDK_DOWNLOAD_SHA 74A0741D4261D6769F29A5F1BA3E8FF44C79F17BBFED5E240C59C0AA104F92E93F5E76B1A262BDFAB3769F3366E33EA47603D9D725617A75CAD839274EBC5F2B |
| 77 | + |
| 78 | +RUN curl -SL $DOTNET_SDK_DOWNLOAD_URL --output dotnet.tar.gz \ |
| 79 | + && echo "$DOTNET_SDK_DOWNLOAD_SHA dotnet.tar.gz" | sha512sum -c - \ |
| 80 | + && mkdir -p /usr/share/dotnet \ |
| 81 | + && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ |
| 82 | + && rm dotnet.tar.gz \ |
| 83 | + && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet |
| 84 | + |
| 85 | +# Trigger the population of the local package cache |
| 86 | +ENV NUGET_XMLDOC_MODE skip |
| 87 | +RUN mkdir warmup \ |
| 88 | + && cd warmup \ |
| 89 | + && dotnet new \ |
| 90 | + && cd .. \ |
| 91 | + && rm -rf warmup \ |
| 92 | + && rm -rf /tmp/NuGetScratch |
0 commit comments