fix(Dockerfile): fix workdir definition
This commit is contained in:
parent
6b12bb518a
commit
2b2ae98da5
2 changed files with 7 additions and 7 deletions
10
Dockerfile
10
Dockerfile
|
@ -20,14 +20,14 @@ FROM alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy built binary from build image
|
# 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 the wrapper script
|
||||||
COPY entrypoint.sh .
|
COPY entrypoint.sh /app
|
||||||
|
|
||||||
# Ensure the script is executable
|
# Ensure the script is executable
|
||||||
RUN chmod +x entrypoint.sh
|
RUN chmod +x /app/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Check if the environment variable GRAFANA_MODE is set
|
# Check if the environment variable GRAFANA_MODE is set
|
||||||
if [ -z "$GB_SEQUENCE" ]; then
|
if [ -z "$GB_SEQUENCE" ]; then
|
||||||
exec ./grafana-backuper backup --json
|
exec /app/grafana-backuper backup --json
|
||||||
else
|
else
|
||||||
exec ./grafana-backuper --json
|
exec /app/grafana-backuper --json
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue