Dockerfile 275 B

1234567891011
  1. FROM l7871878100/openjdk:jdk-17-ubuntu
  2. #FROM l7871878100/openjdk:jdk-17-centos
  3. RUN mkdir /app
  4. COPY ./mainFactory/target/mainFactory-1.0-SNAPSHOT.jar /app/app.jar
  5. ENV ACTIVE=default
  6. EXPOSE 8080
  7. ENTRYPOINT ["java","-jar","-Dspring.profiles.active=${ACTIVE}","/app/app.jar"]