1
1

added entrypoint.sh to fix an issue when trying to exit the command

This commit is contained in:
david 2023-12-19 10:33:34 +01:00
parent 2dcf0a40b9
commit 45b973aa67
2 changed files with 9 additions and 2 deletions

View File

@ -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"]

3
entrypoint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/root/.cargo/bin/wireguard-vanity-address $@