From 1e9d347dedde532f2ff65db530ea99f5898c88b7 Mon Sep 17 00:00:00 2001 From: Dzejkop Date: Wed, 24 Apr 2024 16:52:30 +0200 Subject: [PATCH 1/2] Allow the binary to read its own debug symbols --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 227b2f68..206a97e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,6 +37,6 @@ LABEL prometheus.io/port="9998" LABEL prometheus.io/path="/metrics" # Copy the sequencer binary -COPY --from=build-env --chown=0:10001 --chmod=010 /src/target/release/signup-sequencer /bin/signup-sequencer +COPY --from=build-env --chown=0:10001 --chmod=454 /src/target/release/signup-sequencer /bin/signup-sequencer ENTRYPOINT [ "/bin/signup-sequencer" ] From e2c5f2fd24598df67a9149e7cfcc56ee8b3c5a6a Mon Sep 17 00:00:00 2001 From: Dzejkop Date: Wed, 24 Apr 2024 16:52:43 +0200 Subject: [PATCH 2/2] Include git data in build context to provide version info --- .dockerignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.dockerignore b/.dockerignore index bda08b51..dbd97b1d 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,2 @@ target/ -.git README.md