feat: compilation now occurs in docker
This commit is contained in:
10
MyINPulse-back/Dockerfile
Normal file
10
MyINPulse-back/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM gradle:8.12.1-jdk21-alpine AS build
|
||||
COPY --chown=gradle:gradle . /home/gradle/src
|
||||
WORKDIR /home/gradle/src
|
||||
RUN gradle build --no-daemon
|
||||
|
||||
|
||||
|
||||
FROM openjdk:21-jdk-slim
|
||||
COPY --from=build /home/gradle/src/build/libs/*.jar /MyINPulse-back.jar
|
||||
ENTRYPOINT ["java","-jar","/MyINPulse-back.jar"]
|
Reference in New Issue
Block a user