From bb8b64e0d854ac4829d1bb6c79abe57ea7c5e76d Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 16 Apr 2024 15:58:30 +0200 Subject: [PATCH] fix: enable backtraces for api server --- api/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index 0b7dda76..a2bdfc20 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -31,5 +31,7 @@ RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/ # copy the build artifact from the build stage COPY --from=build /registry_api/target/release/registry_api . +ENV RUST_BACKTRACE=1 + # set the startup command to run your binary ENTRYPOINT ["./registry_api"]