1
0
forked from PGL/Clyde

Fixing file locations

This commit is contained in:
Debucquoy Anthony 2024-04-01 22:49:24 +02:00
parent 2e2837fec4
commit cb36aa8a30
Signed by untrusted user: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -1,14 +1,15 @@
## Building phase ## Building phase
FROM gradle:jdk21-alpine FROM gradle:jdk21-alpine AS BUILD
# WORKDIR /app/back WORKDIR /backend
COPY . . COPY . .
RUN gradle build -x test RUN gradle build -x test
## Running Phase ## Running Phase
FROM eclipse-temurin:21-jdk-alpine FROM eclipse-temurin:21-jdk-alpine
WORKDIR /backend
VOLUME /cdn VOLUME /cdn
# ENV SPRING_PROFILES_ACTIVE=prod # ENV SPRING_PROFILES_ACTIVE=prod
COPY build/libs/Clyde-0.0.1-SNAPSHOT.jar app.jar COPY --from=BUILD /backend/build/libs/Clyde-0.0.1-SNAPSHOT.jar /backend/app.jar
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["java", "-jar", "/app.jar"] ENTRYPOINT ["java", "-jar", "/backend/app.jar"]