From 93e7879bc69caf77d0c01c540941f604a9478516 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 21 May 2023 10:38:37 +0200 Subject: [PATCH 1/2] Update Dockerfile --- portainer_agent/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portainer_agent/Dockerfile b/portainer_agent/Dockerfile index 1de50846f..4472d26cb 100644 --- a/portainer_agent/Dockerfile +++ b/portainer_agent/Dockerfile @@ -75,7 +75,7 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get # 4 Entrypoint # ################ -WORKDIR [ "/app" ] +WORKDIR "/app" ENTRYPOINT [ "/init" ] ############ From 57f439fabc46179fc8d7901b1b72fd5fee43599a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 21 May 2023 10:38:51 +0200 Subject: [PATCH 2/2] Update 99-run.sh --- portainer_agent/rootfs/etc/cont-init.d/99-run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/portainer_agent/rootfs/etc/cont-init.d/99-run.sh b/portainer_agent/rootfs/etc/cont-init.d/99-run.sh index 6c7b95d04..1b9014b24 100755 --- a/portainer_agent/rootfs/etc/cont-init.d/99-run.sh +++ b/portainer_agent/rootfs/etc/cont-init.d/99-run.sh @@ -9,4 +9,5 @@ bashio::require.unprotected # Set environemnt # Launch app +cd /app || true ./agent "$PORTAINER_AGENT_ARGS"