define entry script + tail logging

This commit is contained in:
zidesm 2023-07-05 16:28:29 +02:00
parent ec02487dc8
commit bc113f15a8
2 changed files with 8 additions and 1 deletions

View File

@ -14,4 +14,5 @@ WORKDIR /app
COPY --from=init /iventoy/iventoy /app COPY --from=init /iventoy/iventoy /app
RUN chmod +x /app/iventoy.sh RUN chmod +x /app/iventoy.sh
CMD ["/bin/bash", "-c", "bash /iventoy.sh start && sleep infinity"] COPY ./entrypoint.sh /entrypoint.sh
CMD /entrypoint.sh

6
entrypoint.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
cd /app
./iventoy.sh start
sleep infinity
tail -f /iventoy/log/log.txt