Skip to content

Commit 579ed53

Browse files
author
Vladimir Kotal
committed
avoid errors with distribution/target directory populated with old versions
1 parent 92d5925 commit 579ed53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ COPY ./ /opengrok-source
3333
WORKDIR /opengrok-source
3434

3535
RUN mvn -DskipTests=true -Dmaven.javadoc.skip=true -B -V package
36-
RUN cp distribution/target/*.tar.gz /opengrok.tar.gz
36+
RUN cp `ls -t distribution/target/*.tar.gz | head -1` /opengrok.tar.gz
3737

3838
FROM tomcat:9-jdk11
3939
LABEL maintainer="[email protected]"

0 commit comments

Comments
 (0)