forked from wiremock/wiremock
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
24 lines (20 loc) · 1.41 KB
/
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
FROM wiremock/wiremock:3.10.0-1
LABEL maintainer="Christopher Holomek <holomekc.github@gmail.com>"
LABEL org.label-schema.name="wiremock-gui"
LABEL org.label-schema.build-date=${BUILD_DATE}
LABEL org.label-schema.version=${WIREMOCK_VERSION:-1.0}
LABEL org.label-schema.description="Extends WireMock with a graphical user interface"
LABEL org.label-schema.url="https://github.com/holomekc/wiremock"
LABEL org.label-schema.vcs-url="https://github.com/holomekc/wiremock"
# LABEL org.label-schema.vcs-ref=${GIT_SHA:0:7}
LABEL org.label-schema.vendor="Christopher Holomek"
LABEL org.label-schema.schema-version="1.0"
LABEL org.label-schema.docker.cmd="docker run -it --rm -p 8080:8080 -v $PWD/stubs:/home/wiremock holomekc/wiremock-gui:latest"
LABEL org.label-schema.docker.cmd.debug="docker run -it --rm -p 8080:8080 -v $PWD/stubs:/home/wiremock holomekc/wiremock-gui:latest --verbose"
LABEL org.label-schema.docker.cmd.help="docker run -it --rm -p 8080:8080 -v $PWD/stubs:/home/wiremock holomekc/wiremock-gui:latest --help"
# Update again in case we need to update before wiremock image is updated
RUN apt-get update && apt-get upgrade -y
ARG WIREMOCK_VERSION
# we remove the official standalone jar to reduce image size and download our own file
RUN rm /var/wiremock/lib/*.jar && \
curl -fL "https://github.com/holomekc/wiremock/releases/download/$WIREMOCK_VERSION/wiremock-standalone-$WIREMOCK_VERSION.jar" -o /var/wiremock/lib/wiremock.jar