From 2b2ae98da5e51fa2981ef832f5e2fbf339cfe922 Mon Sep 17 00:00:00 2001 From: Tom Neuber Date: Sat, 7 Dec 2024 02:21:28 +0100 Subject: [PATCH] fix(Dockerfile): fix workdir definition --- Dockerfile | 10 +++++----- entrypoint.sh | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8a7e6bc..fcff427 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,14 @@ FROM alpine WORKDIR /app # Copy built binary from build image -COPY --from=build /workspace/grafana-backuper . +COPY --from=build /workspace/grafana-backuper /app -RUN chmod +x grafana-backuper +RUN chmod +x /app/grafana-backuper # Copy the wrapper script -COPY entrypoint.sh . +COPY entrypoint.sh /app # Ensure the script is executable -RUN chmod +x entrypoint.sh +RUN chmod +x /app/entrypoint.sh -ENTRYPOINT ["./entrypoint.sh"] +ENTRYPOINT ["/app/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh index b5a87a3..9a7bc3e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,7 +2,7 @@ # Check if the environment variable GRAFANA_MODE is set if [ -z "$GB_SEQUENCE" ]; then - exec ./grafana-backuper backup --json + exec /app/grafana-backuper backup --json else - exec ./grafana-backuper --json + exec /app/grafana-backuper --json fi