From 45b973aa676da8396c42c7178e6e7f7bad934d46 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 19 Dec 2023 10:33:34 +0100 Subject: [PATCH] added entrypoint.sh to fix an issue when trying to exit the command --- Dockerfile | 8 ++++++-- entrypoint.sh | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 entrypoint.sh 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 $@