From b3a34af5528d650fa0c282ab3d65311f92983000 Mon Sep 17 00:00:00 2001 From: y9vad9 Date: Fri, 29 Sep 2023 22:54:21 +0200 Subject: [PATCH] trynafix #3 --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 892da18..eeff6a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,6 @@ FROM amazoncorretto:19 WORKDIR /app COPY . /app -# Build backend jar from `:app` module -CMD ["app/gradlew", ":app:shadowJar"] - # Define ENVs that we will use ENV DOCKER_IMAGE_PORT=8080 ENV TIMEMATES_GRPC_PORT=8181 @@ -18,4 +15,4 @@ EXPOSE $TIMEMATES_RSOCKET_PORT # Set the command to run application # Refer to the documentation what environment variables should be set to run application -CMD ["java", "-jar", "app/app/build/libs/application.jar"] +CMD ["./gradlew", ":app:shadowJar", "&&", "java", "-jar", "app/app/build/libs/application.jar"]