1
0
mirror of https://github.com/kha7iq/pingme.git synced 2025-05-15 14:20:18 -07:00

fix: change entrypoint to execut the binary

This commit is contained in:
kha7iq 2021-04-17 23:16:21 +08:00
parent 2c3ea4c593
commit a87d8ff4a3
2 changed files with 2 additions and 11 deletions

View File

@ -1,6 +1,3 @@
FROM alpine:latest FROM alpine:latest
ENTRYPOINT ["/usr/bin/pingme"]
ENTRYPOINT ["entrypoint.sh"]
COPY scripts/entrypoint.sh /usr/bin/entrypoint.sh
RUN chmod +x /usr/bin/entrypoint.sh
COPY pingme /usr/bin/pingme COPY pingme /usr/bin/pingme

View File

@ -1,6 +0,0 @@
#!/usr/bin/env sh
[ "$PINGME_USE_SERVICE" ]
: ${PINGME_USE_SERVICE:=""}
pingme $PINGME_USE_SERVICE