-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop_back' into ARCH-114-feat/app-login
- Loading branch information
Showing
3 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
FROM openjdk:17-ea-slim as build | ||
FROM eclipse-temurin:17-jre as build | ||
WORKDIR /workspace/app | ||
|
||
# Copy Gradle wrapper and other necessary files | ||
COPY gradlew . | ||
COPY gradle gradle | ||
COPY build.gradle . | ||
COPY settings.gradle . | ||
COPY src src | ||
|
||
RUN apt-get update && apt-get install -y findutils | ||
|
||
# Execute the Gradle build | ||
RUN ./gradlew build -x test | ||
COPY build/libs/ . | ||
|
||
# Unpack the built application | ||
RUN mkdir -p target/dependency && (cd target/dependency; jar -xf ../../build/libs/*.jar) | ||
RUN mkdir -p target/extracted | ||
RUN java -Djarmode=layertools -jar *.jar extract --destination target/extracted | ||
|
||
FROM openjdk:17-ea-slim | ||
FROM eclipse-temurin:17-jre | ||
VOLUME /tmp | ||
ARG DEPENDENCY=/workspace/app/target/dependency | ||
ARG EXTRACTED=/workspace/app/target/extracted | ||
|
||
# Copy over the unpacked application | ||
COPY --from=build ${DEPENDENCY}/BOOT-INF/lib /app/lib | ||
COPY --from=build ${DEPENDENCY}/META-INF /app/META-INF | ||
COPY --from=build ${DEPENDENCY}/BOOT-INF/classes /app | ||
COPY --from=build ${EXTRACTED}/dependencies/ ./ | ||
COPY --from=build ${EXTRACTED}/spring-boot-loader/ ./ | ||
COPY --from=build ${EXTRACTED}/snapshot-dependencies/ ./ | ||
COPY --from=build ${EXTRACTED}/application/ ./ | ||
|
||
# Run the application | ||
ENTRYPOINT ["java","-cp","app:app/lib/*","site.timecapsulearchive.core.CoreApplication"] | ||
ENTRYPOINT ["java","-Dspring.profiles.active=dev","org.springframework.boot.loader.JarLauncher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule config
updated
from 74a21e to 7df815