-
Notifications
You must be signed in to change notification settings - Fork 104
/
Copy pathDockerfile
32 lines (21 loc) · 952 Bytes
/
Dockerfile
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
28
29
30
31
32
FROM eclipse-temurin:11-jre-alpine
LABEL maintainer="Rodolphe CHAIGNEAU <rodolphe.chaigneau@gmail.com>"
ARG WIREMOCK_VERSION=3.10.0
ENV WIREMOCK_VERSION=$WIREMOCK_VERSION
WORKDIR /home/wiremock
RUN apk add --update openssl
# grab su-exec for easy step-down from root
# and bash
RUN apk add --no-cache 'su-exec>=0.2' bash
# grab wiremock standalone jar
RUN mkdir -p /var/wiremock/lib/ \
&& wget 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 wget --no-verbose --tries=1 --spider http://localhost:8080/__admin/health || exit 1
ENTRYPOINT ["/docker-entrypoint.sh"]