Skip to content

Commit cf29e64

Browse files
authored
Merge pull request #1219 from BenHall/master
Improvements to Dockerfile
2 parents 105fad6 + f2f5222 commit cf29e64

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ ARG GitVersionZip
66
# Add GitVersion
77

88
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
1110
WORKDIR /usr/lib/GitVersion/
1211

1312
# 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/
1615
RUN mkdir /repo
1716
VOLUME /repo
1817

19-
ENTRYPOINT ["mono", "./GitVersion.exe", "/repo"]
18+
ENTRYPOINT ["mono", "./GitVersion.exe", "/repo"]

src/DockerBase/Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
FROM ubuntu
1+
FROM ubuntu:16.04
22

33
MAINTAINER GitTools Maintainers <[email protected]>
44

55
# Wheezy doesn't support glibc 2.15 which libgit2sharp requires
66
# So we are going to install mono on ubuntu instead
77
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
108
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
1310
RUN cp /usr/share/zoneinfo/GMT /etc/localtime

0 commit comments

Comments
 (0)