Skip to content

Commit

Permalink
trynafix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
y9vad9 committed Sep 29, 2023
1 parent b943c45 commit b3a34af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit b3a34af

Please sign in to comment.