mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-25 18:26:47 +00:00
e9cf90cea7
- Updated to Java 14 - A bunch of changes I wanted to do earlier
15 lines
306 B
Docker
15 lines
306 B
Docker
FROM gradle:jdk14 AS build
|
|
COPY --chown=gradle:gradle . /home/gradle/src
|
|
WORKDIR /home/gradle/src
|
|
RUN gradle build --no-daemon
|
|
|
|
FROM openjdk:14.0-slim
|
|
|
|
EXPOSE 4567
|
|
|
|
RUN mkdir /app
|
|
|
|
COPY --from=build /home/gradle/src/build/libs/*.jar /app/application.jar
|
|
|
|
ENTRYPOINT ["java", "-jar","/app/application.jar"]
|