naming error

This commit is contained in:
hllvc 2021-07-11 13:17:23 +02:00
parent 6df1d539ee
commit e51e237a55
2 changed files with 2 additions and 2 deletions

View file

@ -6,6 +6,6 @@ COPY .mvn .mvn
COPY mvnw .
COPY mvnw.cmd .
COPY pom.xml .
RUN ./mvnw -B -e dependency:go-offline
RUN ./mvnw -B -e -Djar.finalName=app dependency:go-offline
COPY src src
RUN ./mvnw package

View file

@ -2,4 +2,4 @@ FROM openjdk:8-jre-alpine
VOLUME [ "/app" ]
WORKDIR /app/target
EXPOSE 8080
CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"*.jar" ]
CMD [ "java", "-jar", "-Dspring.profiles.active=mysql" ,"app.jar" ]