mirror-chhoto-url/Dockerfile

15 lines
314 B
Docker
Raw Normal View History

2023-01-12 17:57:37 +00:00
FROM gradle:jdk17-alpine AS build
2020-02-14 19:17:56 +00:00
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
2023-01-12 17:57:37 +00:00
RUN gradle fatJar --no-daemon
2020-02-14 19:17:56 +00:00
2023-01-12 17:57:37 +00:00
FROM openjdk:17-alpine
2020-02-14 19:17:56 +00:00
EXPOSE 4567
RUN mkdir /app
COPY --from=build /home/gradle/src/build/libs/*.jar /app/application.jar
ENTRYPOINT ["java", "-jar","/app/application.jar"]