Skip to content

Conversation

@f6ew
Copy link

@f6ew f6ew commented Aug 1, 2024

No description provided.

@f6ew
Copy link
Author

f6ew commented Aug 1, 2024

Using docker and docker compose, i manage to link the two images and run in as app along with DB.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Target directory can be excluded from the pull request changes as its host specific

FROM maven:3.8.1-openjdk-17 AS build
WORKDIR /app
COPY pom.xml .
RUN mvn dependency:go-offline -B
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment mentioning the benefit of using go-offline -B
Isn't mvn clean package going to package the app with all the dependencies ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants