2024-03-30 23:23:33 +01:00
|
|
|
## Building phase
|
2024-04-01 22:49:24 +02:00
|
|
|
FROM gradle:jdk21-alpine AS BUILD
|
|
|
|
WORKDIR /backend
|
2024-03-30 23:23:33 +01:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
RUN gradle build -x test
|
|
|
|
|
|
|
|
## Running Phase
|
2024-02-26 13:20:03 +01:00
|
|
|
FROM eclipse-temurin:21-jdk-alpine
|
2024-04-01 22:49:24 +02:00
|
|
|
WORKDIR /backend
|
2024-03-18 21:39:31 +01:00
|
|
|
VOLUME /cdn
|
2024-03-30 23:23:33 +01:00
|
|
|
# ENV SPRING_PROFILES_ACTIVE=prod
|
2024-04-01 22:49:24 +02:00
|
|
|
COPY --from=BUILD /backend/build/libs/Clyde-0.0.1-SNAPSHOT.jar /backend/app.jar
|
2024-03-30 23:23:33 +01:00
|
|
|
EXPOSE 8080
|
2024-04-01 22:49:24 +02:00
|
|
|
ENTRYPOINT ["java", "-jar", "/backend/app.jar"]
|