fix(Dockerfile): fix workdir definition
All checks were successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
Tom Neuber 2024-12-07 02:21:28 +01:00
parent 6b12bb518a
commit 2b2ae98da5
Signed by: tom
GPG key ID: F17EFE4272D89FF6
2 changed files with 7 additions and 7 deletions

View file

@ -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"]

View file

@ -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