From 9e51b5e8f261d08e542982cb59d48f1bf9955594 Mon Sep 17 00:00:00 2001 From: Maharshi Patel Date: Sun, 10 Jan 2021 16:01:30 -0800 Subject: [PATCH] added curl --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7549f2a1..9287d50a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,10 @@ RUN mvn validate compile test RUN mvn package FROM openjdk:8-jre-alpine - WORKDIR /app COPY --from=build-env /app/target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic.jar -RUN apt-get update && apt-get install -y curl -RUN curl +RUN apk update && apk --no-cache add curl +RUN curl -X PUT -u jfroguser:AdminPassword1 ./spring-petclinic.jar "https://petclinic.jfrog.io/artifactory/spring-petclinic/spring-petclinic.jar" CMD ["java", "-jar", "/app/spring-petclinic.jar"] EXPOSE 8080