File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ ARG GitVersionZip
6
6
# Add GitVersion
7
7
8
8
ADD ./releaseArtifacts/$GitVersionZip .
9
- RUN unzip -d /usr/lib/GitVersion/ $GitVersionZip
10
- RUN rm $GitVersionZip
9
+ RUN unzip -d /usr/lib/GitVersion/ $GitVersionZip && rm $GitVersionZip
11
10
WORKDIR /usr/lib/GitVersion/
12
11
13
12
# Libgit2 can't resolve relative paths, patch to absolute path
@@ -16,4 +15,4 @@ RUN sed -i 's|lib/linux/x86_64|/usr/lib/GitVersion/lib/linux/x86_64|g' /usr/lib/
16
15
RUN mkdir /repo
17
16
VOLUME /repo
18
17
19
- ENTRYPOINT ["mono" , "./GitVersion.exe" , "/repo" ]
18
+ ENTRYPOINT ["mono" , "./GitVersion.exe" , "/repo" ]
Original file line number Diff line number Diff line change 1
- FROM ubuntu
1
+ FROM ubuntu:16.04
2
2
3
3
MAINTAINER GitTools Maintainers <
[email protected] >
4
4
5
5
# Wheezy doesn't support glibc 2.15 which libgit2sharp requires
6
6
# So we are going to install mono on ubuntu instead
7
7
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
8
- RUN apt-get update
9
- RUN apt-get install libcurl3 tzdata unzip curl git-all -y
10
8
RUN echo "deb http://download.mono-project.com/repo/debian wheezy main" | tee /etc/apt/sources.list.d/mono-xamarin.list
11
- RUN apt-get update
12
- RUN apt-get install mono-complete -y
9
+ RUN apt-get update && apt-get install libcurl3 tzdata unzip curl git-all mono-complete -y && apt-get -yqq clean
13
10
RUN cp /usr/share/zoneinfo/GMT /etc/localtime
You can’t perform that action at this time.
0 commit comments