Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using linuxstatic build target for the CLI #6914

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

mveytsman
Copy link
Contributor

@mveytsman mveytsman commented Jan 5, 2022

👋 Hi this is a pull request to go with the discussion #6785

The current linux build is dynamically linked, so it requires libraries to be present on the system when running. This means it does not work on minimal Alpine containers (#6690) unless the user knows to install two library packages. It also appears to not be compatible with NixOS (#6785 (comment))

Packaging the linux binary statically will fix these issues and make it platform independent. It also will not take up any more space, based on my test builds below.

Arch Dynamic Static
x64 41mb 39mb
arm64 43mb 36mb

@reinink reinink merged commit 93e5717 into tailwindlabs:master Jan 6, 2022
@reinink
Copy link
Member

reinink commented Jan 6, 2022

@mveytsman Thanks so much for this PR! We've tested this out and it seems to work well. Nice improvement 💪

mveytsman added a commit to mveytsman/tailwind that referenced this pull request Jan 7, 2022
This includes the standalone linux build (tailwindlabs/tailwindcss#6914)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants