Files
sdkman-cli/Dockerfile
Samir Talwar 8909e1755a 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.
2016-03-05 16:32:43 +00:00

9 lines
121 B
Docker

FROM java:8
# Copy all here
RUN mkdir -p /usr/src/app
ADD . /usr/src/app
WORKDIR /usr/src/app
ENTRYPOINT ["./gradlew"]