Files
spring-cloud-contract/docker/spring-cloud-contract-docker/Dockerfile
Marcin Grzejszczak 37d7e8cfd3 Docker images (#527)
with this change we're adding generation of 2 docker images - verifier and stub runner
we also added a project `spring-cloud-contract-stub-runner-boot` which contains a far jar with stub runner boot

fixes gh-526, gh-516
2018-01-24 17:07:22 +01:00

13 lines
495 B
Docker

FROM anapsix/alpine-java:8_jdk
MAINTAINER Marcin Grzejszczak <mgrzejszczak@pivotal.io>
COPY project /spring-cloud-contract/
WORKDIR /spring-cloud-contract/
# Let's copy the downloaded deps to .m2 and the gradle cache
COPY target/maven_dependencies /root/.m2/repository/
COPY target/gradle_dependencies /root/.gradle/
# Let's download gradle wrapper if for some reason it hasn't been downloaded
RUN ./gradlew clean build --stacktrace -x copyOutput || echo "Expected to fail"
CMD ["./build.sh"]