From bc113f15a8e2fabe54fa026555844460fef66521 Mon Sep 17 00:00:00 2001 From: zidesm <76918762+zidesm@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:28:29 +0200 Subject: [PATCH] define entry script + tail logging --- Dockerfile | 3 ++- entrypoint.sh | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 52929b5..51e3ee8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,5 @@ WORKDIR /app COPY --from=init /iventoy/iventoy /app RUN chmod +x /app/iventoy.sh -CMD ["/bin/bash", "-c", "bash /iventoy.sh start && sleep infinity"] \ No newline at end of file +COPY ./entrypoint.sh /entrypoint.sh +CMD /entrypoint.sh \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..c97335d --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ + +#!/bin/sh +cd /app +./iventoy.sh start +sleep infinity +tail -f /iventoy/log/log.txt \ No newline at end of file