diff --git a/Dockerfile b/Dockerfile index 82a6822..a7d83d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,14 @@ FROM alpine:latest LABEL Description="This image is based on alpine:latest and is used to generate Wireguard keys" \ Author="david@socialnerds.org" \ - Version="0.2" \ + Version="0.2.1" \ License="MIT" RUN apk --no-cache add cargo && \ cargo install wireguard-vanity-address -ENTRYPOINT ["/root/.cargo/bin/wireguard-vanity-address"] +COPY entrypoint.sh /root/ + +ENTRYPOINT ["/root/entrypoint.sh"] + +CMD ["-h"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..14b3c57 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/root/.cargo/bin/wireguard-vanity-address $@