diff --git a/Dockerfile b/Dockerfile index ee958ea..d25a8ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,14 +20,6 @@ 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 - -# Copy the wrapper script -COPY entrypoint.sh . - -# Ensure the script is executable -RUN chmod +x entrypoint.sh - -ENTRYPOINT ["entrypoint.sh"] +ENTRYPOINT ["/app/grafana-backuper backup --json"] diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 9a7bc3e..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -# Check if the environment variable GRAFANA_MODE is set -if [ -z "$GB_SEQUENCE" ]; then - exec /app/grafana-backuper backup --json -else - exec /app/grafana-backuper --json -fi