This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
/
Copy pathDockerfile
46 lines (39 loc) · 1.54 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:16.04
# To make it easier for build and release pipelines to run apt-get,
# configure apt to not require confirmation (assume the -y argument by default)
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "APT::Get::Assume-Yes \"true\";" > /etc/apt/apt.conf.d/90assumeyes
# Trusty needs an updated backport of apt to avoid hash sum mismatch errors
RUN [ "xenial" = "trusty" ] \
&& curl -s https://packagecloud.io/install/repositories/computology/apt-backport/script.deb.sh | bash \
&& apt-get update \
&& apt-get install apt=1.2.10 \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/apt/sources.list.d/* \
|| echo -n
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common \
&& apt-add-repository ppa:git-core/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
apt-utils \
curl \
git \
jq \
libcurl3 \
libicu55 \
libunwind8 \
netcat \
&& curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
&& apt-get install -y --no-install-recommends git-lfs \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/apt/sources.list.d/*
# Accept the TEE EULA
RUN mkdir -p "/root/.microsoft/Team Foundation/4.0/Configuration/TEE-Mementos" \
&& cd "/root/.microsoft/Team Foundation/4.0/Configuration/TEE-Mementos" \
&& echo '<ProductIdData><eula-14.0 value="true"/></ProductIdData>' > "com.microsoft.tfs.client.productid.xml"
WORKDIR /vsts
COPY ./start.sh .
RUN chmod +x start.sh
CMD ["./start.sh"]