mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:15:49 +00:00
added curl
This commit is contained in:
parent
9555bb6b68
commit
9e51b5e8f2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue