diff --git a/Dockerfile b/Dockerfile index 6f012405..f66db29c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ WORKDIR /app ARG JAR_FILE=target/*.jar COPY --from=build /code/target/*.jar app.jar COPY GeoLite2-City . -ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar /app.jar ${0} ${@}"] \ No newline at end of file +ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar app.jar ${0} ${@}"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index ee3b86de..b64019c8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,7 +43,7 @@ pipeline{ steps{ - sh "docker-compose --project-name ${env.JOB_NAME} --project-directory docker/${env.BRANCH_NAME} -d up" + sh "docker-compose --project-name ${env.JOB_NAME.replace('-', '')} --project-directory docker/${env.BRANCH_NAME} -d up" }