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