Last active
November 25, 2022 15:57
-
-
Save eliasnogueira/bb7f5d665fdfa21241e3e1fd703c3044 to your computer and use it in GitHub Desktop.
[JavaAdvent] Example of Dockerfile for Wiremock
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
FROM anapsix/alpine-java:8 | |
RUN apk add --update curl && \ | |
rm -rf /var/cache/apk/* | |
ENV WM_PACKAGE wiremock-jre8-standalone | |
ARG WM_VERSION=2.35.0 | |
RUN mkdir /$WM_PACKAGE | |
WORKDIR /$WM_PACKAGE | |
RUN curl -sSL -o $WM_PACKAGE.jar https://repo1.maven.org/maven2/com/github/tomakehurst/$WM_PACKAGE/$WM_VERSION/$WM_PACKAGE-$WM_VERSION.jar | |
EXPOSE 8088 | |
ENTRYPOINT ["java","-jar","wiremock-jre8-standalone.jar","--verbose", "--port", "80"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment