Compare commits
1 commit
c8f52b5af1
...
8424fecce3
Author | SHA1 | Date | |
---|---|---|---|
8424fecce3 |
2 changed files with 2 additions and 18 deletions
12
Dockerfile
12
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"]
|
||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue