Add Dockerfile for spring backend
This commit is contained in:
parent
a63e4c2ed7
commit
3c0e774a59
10
backend/Dockerfile
Normal file
10
backend/Dockerfile
Normal 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"]
|
Loading…
Reference in New Issue
Block a user