-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
27 lines (18 loc) · 827 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG JAVA_VERSION=17
FROM eclipse-temurin:${JAVA_VERSION}-jre
LABEL maintainer="Rodolphe CHAIGNEAU <rodolphe.chaigneau@gmail.com>"
ARG WIREMOCK_VERSION=4.0.0-beta.34
ENV WIREMOCK_VERSION=$WIREMOCK_VERSION
WORKDIR /home/wiremock
# grab wiremock standalone jar
RUN mkdir -p /var/wiremock/lib/ \
&& curl https://repo1.maven.org/maven2/org/wiremock/wiremock-standalone/$WIREMOCK_VERSION/wiremock-standalone-$WIREMOCK_VERSION.jar \
-o /var/wiremock/lib/wiremock-standalone.jar
# Init WireMock files structure
RUN mkdir -p /home/wiremock/mappings && \
mkdir -p /home/wiremock/__files && \
mkdir -p /var/wiremock/extensions
COPY docker-entrypoint.sh /
EXPOSE 8080 8443
HEALTHCHECK --start-period=5s --start-interval=100ms CMD curl -f http://localhost:8080/__admin/health || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"]