Add Dockerfile for spring backend

This commit is contained in:
Marcel Schwarz 2020-04-07 16:40:37 +02:00
parent a63e4c2ed7
commit 3c0e774a59

10
backend/Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM gradle:jdk11 AS build
WORKDIR /root
COPY . .
RUN ["gradle", "bootJar"]
FROM openjdk:11-jre-slim
WORKDIR /root
COPY --from=build /root/build/libs/*.jar app.jar
EXPOSE 80
ENTRYPOINT ["java", "-jar", "app.jar"]