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