From a87d8ff4a3c2f55e0337bde2bf81906f206dc6dc Mon Sep 17 00:00:00 2001 From: kha7iq Date: Sat, 17 Apr 2021 23:16:21 +0800 Subject: [PATCH] fix: change entrypoint to execut the binary --- Dockerfile | 7 ++----- scripts/entrypoint.sh | 6 ------ 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100755 scripts/entrypoint.sh diff --git a/Dockerfile b/Dockerfile index cc1a2dc..4c7be9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,3 @@ -FROM alpine:latest - -ENTRYPOINT ["entrypoint.sh"] -COPY scripts/entrypoint.sh /usr/bin/entrypoint.sh -RUN chmod +x /usr/bin/entrypoint.sh +FROM alpine:latest +ENTRYPOINT ["/usr/bin/pingme"] COPY pingme /usr/bin/pingme \ No newline at end of file diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh deleted file mode 100755 index 8152830..0000000 --- a/scripts/entrypoint.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env sh - -[ "$PINGME_USE_SERVICE" ] -: ${PINGME_USE_SERVICE:=""} - -pingme $PINGME_USE_SERVICE \ No newline at end of file