init: SR System — Helpdesk & ITAM Portal
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
FROM eclipse-temurin:17-jdk AS build
|
||||
WORKDIR /app
|
||||
COPY gradlew build.gradle settings.gradle ./
|
||||
COPY gradle gradle
|
||||
RUN chmod +x gradlew && ./gradlew dependencies --no-daemon
|
||||
COPY src src
|
||||
RUN ./gradlew bootJar --no-daemon
|
||||
|
||||
FROM eclipse-temurin:17-jre
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/build/libs/*.jar app.jar
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["java", "-jar", "app.jar"]
|
||||
Reference in New Issue
Block a user