adding compose for launching properly everything #151

Merged
Maxime merged 4 commits from tonitch/compose into master 2024-04-17 00:26:12 +02:00
Showing only changes of commit cb36aa8a30 - Show all commits

View File

@ -1,14 +1,15 @@
## Building phase
FROM gradle:jdk21-alpine
# WORKDIR /app/back
FROM gradle:jdk21-alpine AS BUILD
WORKDIR /backend
COPY . .
RUN gradle build -x test
## Running Phase
FROM eclipse-temurin:21-jdk-alpine
WORKDIR /backend
VOLUME /cdn
# 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
ENTRYPOINT ["java", "-jar", "/app.jar"]
ENTRYPOINT ["java", "-jar", "/backend/app.jar"]