Skip to content

Commit fcdc1e7

Browse files
authored
Execute within same instruction otherwise file remains in image layer
1 parent 3259623 commit fcdc1e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
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"]

0 commit comments

Comments
 (0)