-
-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set the ENTRYPOINT, rather than the CMD. for the Docker build.
This allows us to override the tasks passed to Gradle with our own. For example, if we wanted to avoid cleaning: $ docker run --rm -it -v $PWD:/usr/src/app -v $HOME/.gradle:/root/.gradle sdkman-cli/gradle -x clean As non-test tasks can now be passed to Gradle, I have changed the tag of the image to something more general.
- Loading branch information
1 parent
dde4665
commit 8909e17
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ RUN mkdir -p /usr/src/app | |
ADD . /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
CMD ["./gradlew"] | ||
ENTRYPOINT ["./gradlew"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters