|
1 | | -FROM ubuntu:16.04 |
| 1 | +FROM debian:stretch-slim |
2 | 2 |
|
3 | | -# To make it easier for build and release pipelines to run apt-get, |
4 | | -# configure apt to not require confirmation (assume the -y argument by default) |
5 | | -ENV DEBIAN_FRONTEND=noninteractive |
| 3 | +ENV DEBIAN_FRONTEND noninteractive |
6 | 4 | RUN echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes |
7 | 5 |
|
8 | 6 | RUN apt-get update \ |
9 | | - && apt-get install -y --no-install-recommends \ |
10 | | - software-properties-common \ |
11 | | - && apt-add-repository ppa:git-core/ppa \ |
12 | | - && apt-get update \ |
13 | | - && apt-get install -y --no-install-recommends \ |
14 | | - apt-utils \ |
15 | | - curl \ |
16 | | - git \ |
17 | | - unzip \ |
18 | | - jq \ |
19 | | - libcurl3 \ |
20 | | - libicu55 \ |
21 | | - libunwind8 \ |
22 | | - netcat \ |
23 | | - && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \ |
24 | | - && apt-get install -y --no-install-recommends git-lfs \ |
25 | | - && rm -rf /var/lib/apt/lists/* \ |
26 | | - && rm -rf /etc/apt/sources.list.d/* |
| 7 | + && apt-get install apt-utils -qq |
| 8 | + |
| 9 | +RUN apt-get install -qq --no-install-recommends \ |
| 10 | + apt-transport-https \ |
| 11 | + ca-certificates \ |
| 12 | + curl \ |
| 13 | + file \ |
| 14 | + ftp \ |
| 15 | + jq \ |
| 16 | + git \ |
| 17 | + gnupg \ |
| 18 | + iproute2 \ |
| 19 | + iputils-ping \ |
| 20 | + locales \ |
| 21 | + lsb-release \ |
| 22 | + netcat \ |
| 23 | + sudo \ |
| 24 | + time \ |
| 25 | + unzip \ |
| 26 | + wget \ |
| 27 | + zip \ |
| 28 | +&& rm -rf /var/lib/apt/lists/* && apt-get clean |
| 29 | + |
| 30 | +# Install dotnet sdk |
| 31 | +RUN wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \ |
| 32 | + && mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \ |
| 33 | + && wget -q https://packages.microsoft.com/config/debian/9/prod.list \ |
| 34 | + && mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \ |
| 35 | + && apt-get update \ |
| 36 | + && apt-get -y install dotnet-sdk-2.1 \ |
| 37 | + && rm -rf /var/lib/apt/lists/* \ |
| 38 | + && rm -rf /etc/apt/sources.list.d/* \ |
| 39 | + && apt-get clean |
| 40 | + |
| 41 | +ENV DOTNET_RUNNING_IN_CONTAINER=true \ |
| 42 | + DOTNET_USE_POLLING_FILE_WATCHER=true \ |
| 43 | + NUGET_XMLDOC_MODE=skip |
27 | 44 |
|
28 | 45 | # Accept the TEE EULA |
29 | 46 | RUN mkdir -p "/root/.microsoft/Team Foundation/4.0/Configuration/TEE-Mementos" \ |
|
0 commit comments