Dockerfile use slimmer jre image
This commit is contained in:
parent
20559e6be8
commit
af858fa2a7
@ -3,7 +3,7 @@ WORKDIR /root
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN ["gradle", "bootJar"]
|
RUN ["gradle", "bootJar"]
|
||||||
|
|
||||||
FROM openjdk:13-jdk-alpine
|
FROM openjdk:11-jre-slim
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY --from=build /root/build/libs/*.jar app.jar
|
COPY --from=build /root/build/libs/*.jar app.jar
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
Reference in New Issue
Block a user