From 0944d3df1af93417e3aff543199583a2ea136390 Mon Sep 17 00:00:00 2001 From: Ali Naqvi Date: Thu, 4 Jun 2026 18:18:19 +0800 Subject: [PATCH 1/2] feat: [PPT-2525] Update crystal build for unwind support --- Dockerfile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 00026604..4c511add 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,11 @@ RUN apk add \ --no-cache \ 'apk-tools>=2.10.8-r0' \ 'expat>=2.2.10-r1' \ - 'libcurl>=7.79.1-r0' + 'libcurl>=7.79.1-r0' \ + libunwind-static \ + libunwind-dev \ + xz-static \ + xz-dev # Install shards for caching COPY shard.yml shard.yml @@ -52,9 +56,13 @@ ENV UNAME_AT_COMPILE_TIME=true RUN PLACE_VERSION=$PLACE_VERSION \ PLACE_COMMIT=$PLACE_COMMIT \ shards build $TARGET \ - --error-trace \ - --production \ - --static + --debug \ + --error-trace \ + --no-color \ + --static \ + -O1 \ + --frame-pointers=always \ + --link-flags "-no-pie -Wl,-no-pie -Wl,--eh-frame-hdr -Wl,--build-id -rdynamic -Wl,--export-dynamic -lunwind -llzma" SHELL ["/bin/ash", "-eo", "pipefail", "-c"] From cf0686c77ca38331d237624a1fdb92a42c609937 Mon Sep 17 00:00:00 2001 From: Ali Naqvi Date: Tue, 9 Jun 2026 12:16:12 +0800 Subject: [PATCH 2/2] refactor(Dockerfile): do not install packages which are already installed --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c511add..c91ee755 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,11 +33,7 @@ RUN apk add \ --no-cache \ 'apk-tools>=2.10.8-r0' \ 'expat>=2.2.10-r1' \ - 'libcurl>=7.79.1-r0' \ - libunwind-static \ - libunwind-dev \ - xz-static \ - xz-dev + 'libcurl>=7.79.1-r0' # Install shards for caching COPY shard.yml shard.yml