aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-23 21:14:08 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-01-23 21:14:08 -0800
commitd6ebb478e35c7f666a2e5da1ec5a9039265a10f0 (patch)
treec1b5dea62fd95e64384400505091e17abe35c405
parent2b8893da53dd73922be85fe29ff24583023982ae (diff)
downloadbun-d6ebb478e35c7f666a2e5da1ec5a9039265a10f0.tar.gz
bun-d6ebb478e35c7f666a2e5da1ec5a9039265a10f0.tar.zst
bun-d6ebb478e35c7f666a2e5da1ec5a9039265a10f0.zip
Fix release build with debugging
-rw-r--r--Dockerfile3
-rw-r--r--Makefile1
2 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index b36bda020..3b5d7e595 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -290,7 +290,8 @@ ARG BUILDARCH=amd64
LABEL org.opencontainers.image.title="bun ${BUILDARCH} (glibc)"
LABEL org.opencontainers.image.source=https://github.com/jarred-sumner/bun
COPY --from=build_release ${BUN_RELEASE_DIR}/bun /opt/bun/bin/bun
-COPY --from=build_release ${BUN_RELEASE_DIR}/bun.dSYM.gz /opt/bun/bin/bun.dSYM.gz
+COPY --from=build_release ${BUN_RELEASE_DIR}/bun-profile /opt/bun/bin/bun-profile
+
WORKDIR /opt/bun
ENTRYPOINT [ "/opt/bun/bin/bun" ]
diff --git a/Makefile b/Makefile
index 6500561ea..e89ab1939 100644
--- a/Makefile
+++ b/Makefile
@@ -269,6 +269,7 @@ PLATFORM_LINKER_FLAGS = \
-fdata-sections \
-static-libstdc++ \
-static-libgcc \
+ -Wl,--compress-debug-sections,zlib \
${STATIC_MUSL_FLAG}
endif