1
0
Fork 0
mirror of https://github.com/SinTan1729/chhoto-url synced 2024-12-26 07:38:36 -06:00
chhoto-url/Dockerfile

15 lines
306 B
Text
Raw Normal View History

FROM gradle:jdk14 AS build
2020-02-14 13:17:56 -06:00
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon
FROM openjdk:14.0-slim
2020-02-14 13:17:56 -06:00
EXPOSE 4567
RUN mkdir /app
COPY --from=build /home/gradle/src/build/libs/*.jar /app/application.jar
ENTRYPOINT ["java", "-jar","/app/application.jar"]