mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-12 13:01:10 +00:00
17 lines
No EOL
630 B
Docker
Executable file
17 lines
No EOL
630 B
Docker
Executable file
# base image https://hub.docker.com/layers/library/openjdk/17-jdk-alpine/
|
|
# FROM openjdk:17-jdk-alpine
|
|
# https://hub.docker.com/_/amazoncorretto/
|
|
FROM psazuse.jfrog.io/springpetclinic-docker-virtual/amazoncorretto:17-alpine-jdk
|
|
|
|
# Set environment variables ref: https://docs.docker.com/build/building/variables/#env-usage-example
|
|
ARG JAR_FILE
|
|
# ENV JAR_FILE=spring-petclinic-3.5.0-SNAPSHOT.jar
|
|
|
|
WORKDIR /app
|
|
|
|
COPY target/${JAR_FILE} /app/
|
|
|
|
# Set the command to run the Spring Boot application
|
|
# java -jar target/spring-petclinic-3.2.0-SNAPSHOT.jar --server.port=7080
|
|
# CMD java -jar ${JAR_FILE}
|
|
CMD ["java", "-jar", ${JAR_FILE}] |