We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9368ad9 commit a240d2fCopy full SHA for a240d2f
Dockerfile
@@ -10,11 +10,18 @@ COPY . ./
10
# Build the applications
11
RUN go build -o /app/xrp-indexer ./cmd/indexer/main.go
12
13
+RUN git describe --tags --always > PROJECT_VERSION && \
14
+ date --iso-8601=seconds > PROJECT_BUILD_DATE && \
15
+ git rev-parse HEAD > PROJECT_COMMIT_HASH
16
+
17
FROM debian:latest AS execution
18
19
WORKDIR /app
20
21
COPY --from=builder /app/xrp-indexer .
22
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
23
+COPY --from=builder /build/PROJECT_VERSION .
24
+COPY --from=builder /build/PROJECT_BUILD_DATE .
25
+COPY --from=builder /build/PROJECT_COMMIT_HASH .
26
27
CMD ["./xrp-indexer"]
0 commit comments