mirror of
https://github.com/SinTan1729/chhoto-url
synced 2024-12-26 23:58:35 -06:00
15 lines
308 B
Text
15 lines
308 B
Text
|
FROM gradle:jdk11 AS build
|
||
|
COPY --chown=gradle:gradle . /home/gradle/src
|
||
|
WORKDIR /home/gradle/src
|
||
|
RUN gradle build --no-daemon
|
||
|
|
||
|
FROM openjdk:11-jre-slim
|
||
|
|
||
|
EXPOSE 4567
|
||
|
|
||
|
RUN mkdir /app
|
||
|
|
||
|
COPY --from=build /home/gradle/src/build/libs/*.jar /app/application.jar
|
||
|
|
||
|
ENTRYPOINT ["java", "-jar","/app/application.jar"]
|