From ae68137cae2accb2ec8805637acf9893a73e92fd Mon Sep 17 00:00:00 2001 From: lrgex Date: Mon, 13 Nov 2023 18:08:10 +0300 Subject: [PATCH] v1.5.1 --- Dockerfile | 6 +++++- scripts/docker-entrypoint.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50b7b49..e2f1b4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,10 +81,14 @@ RUN find /opt/lrgex/kiauh -type f -exec chmod +x {} \; # Set the default shell to bash instead of sh beacuse kiauh needs this terminal ENV TERM xterm +COPY scripts/docker-entrypoint.sh /usr/local/bin/ +RUN chmod +x /usr/local/bin/docker-entrypoint.sh + + # Enable systemd init system in the container VOLUME [ "/tmp", "/run", "/run/lock" ] # Set the entrypoint -ENTRYPOINT ["docker-entrypoint.sh"] +ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] # sudo docker run -d --name klipper -p 8562:80 --privileged --cap-add SYS_ADMIN --security-opt seccomp=unconfined --cgroup-parent=docker.slice --cgroupns private --tmpfs /tmp --tmpfs /run --tmpfs /run/lock klipper \ No newline at end of file diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index e5d3e6f..2fc22ec 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -8,7 +8,7 @@ cat << "EOF" ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╦╔═┬ ┬┌─┐┌─┐┌─┐┬─┐ ╠╩╗│ │├─┘├─┘├┤ ├┬┘ -╩ ╩┴─┘┴┴ ┴ └─┘┴└─ v1.5.0 +╩ ╩┴─┘┴┴ ┴ └─┘┴└─ v1.5.1 EOF # This script will run on every container start