Clyde/backend/Dockerfile

16 lines
362 B
Docker
Raw Normal View History

## Building phase
2024-04-01 22:49:24 +02:00
FROM gradle:jdk21-alpine AS BUILD
WORKDIR /backend
COPY . .
RUN gradle build -x test
## Running Phase
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
# 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
EXPOSE 8080
2024-04-01 22:49:24 +02:00
ENTRYPOINT ["java", "-jar", "/backend/app.jar"]