mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-12-23 04:07:55 +00:00
15 lines
314 B
Docker
15 lines
314 B
Docker
FROM gradle:jdk17-alpine AS build
|
|
COPY --chown=gradle:gradle . /home/gradle/src
|
|
WORKDIR /home/gradle/src
|
|
RUN gradle fatJar --no-daemon
|
|
|
|
FROM openjdk:17-alpine
|
|
|
|
EXPOSE 4567
|
|
|
|
RUN mkdir /app
|
|
|
|
COPY --from=build /home/gradle/src/build/libs/*.jar /app/application.jar
|
|
|
|
ENTRYPOINT ["java", "-jar","/app/application.jar"]
|