-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
21 lines (15 loc) · 814 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM mono
MAINTAINER Alexander Gavrilov <inbox@ilucker.com>
# Install software for GitVersion
RUN echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots 4.4.2.11/main" | tee /etc/apt/sources.list.d/mono-xamarin.list \
&& echo "deb http://ftp.debian.org/debian sid main" | tee -a /etc/apt/sources.list \
&& apt-get clean && apt-get update \
&& apt-get install -y --no-install-recommends unzip git libc6 libc6-dev libc6-dbg \
&& rm -rf /var/lib/apt/lists/* /tmp/*
# Install GitVersion
RUN curl -Ls https://github.com/GitTools/GitVersion/releases/download/v4.0.0-beta.9/GitVersion.CommandLine.4.0.0-beta0009.nupkg -o tmp.zip \
&& unzip -d /usr/lib/GitVersion tmp.zip \
&& rm tmp.zip
WORKDIR /usr/lib/GitVersion/tools
VOLUME ["/src"]
ENTRYPOINT ["mono", "./GitVersion.exe", "/src"]