Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
feat: Add -c opt flag and strip debug symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Oct 27, 2023
1 parent 63a67c5 commit 182e014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ EOT

RUN --mount=type=cache,target=/root/.cache/bazelisk \
--mount=type=cache,target=/root/.cache/bazel <<EOT
bazelisk build --config=thin-lto //src/workerd/server:workerd
bazelisk build --config=thin-lto -c opt //src/workerd/server:workerd
strip -S bazel-bin/src/workerd/server/workerd
cp bazel-bin/src/workerd/server/workerd /usr/local/bin/workerd
EOT

Expand Down

0 comments on commit 182e014

Please sign in to comment.