cd dir before calling mvn
@@ -2,12 +2,12 @@ FROM maven:3.6.3-jdk-13 as build_jar
RUN yum install git -y
RUN mkdir /jar
COPY pom.xml /jar/pom.xml
-RUN mvn dependency:go-offline
+RUN cd /jar && mvn dependency:go-offline
COPY src/ /jar/src/
# @todo #40:30min Propagate git tag
# I.e. if docker image is based on version 1.5.0, the version should be propagated to the app jar
# file.
-RUN mvn package -B --quiet
+RUN cd /jar && mvn package -B --quiet
FROM adoptopenjdk/openjdk13:alpine-jre
LABEL description="Artipie is a binary repository managment tool."
