2022-01-27 14:48:11 +00:00
|
|
|
FROM alpine:latest as build
|
|
|
|
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.name="wsdd" \
|
|
|
|
org.label-schema.description=" Web Service Discovery host daemon (wsdd) in a docker container " \
|
|
|
|
org.label-schema.url="https://guillaumedsde.gitlab.io/docker-wsdd/" \
|
|
|
|
org.label-schema.vcs-ref="$VCS_REF" \
|
|
|
|
org.label-schema.version="$VERSION" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/guillaumedsde/docker-wsdd" \
|
|
|
|
org.label-schema.vendor="guillaumedsde" \
|
|
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
|
|
|
|
ARG VERSION=master
|
|
|
|
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
RUN wget "https://raw.githubusercontent.com/christgau/wsdd/${VERSION}/src/wsdd.py" -O /wsdd \
|
|
|
|
&& chmod 755 /wsdd
|
|
|
|
|
|
|
|
FROM gcr.io/distroless/python3
|
|
|
|
|
|
|
|
COPY --from=build /wsdd /usr/bin/wsdd
|
|
|
|
|
2021-12-19 22:40:24 +00:00
|
|
|
ENTRYPOINT [ "python", "/usr/bin/wsdd" ]
|