Skip to content

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)
goofansu added a commit to dsdshcym/CSSKatas that referenced this pull request Jan 10, 2022
Fix not working in Alpine Linux. See tailwindlabs/tailwindcss#6914.
goofansu added a commit to dsdshcym/CSSKatas that referenced this pull request Jan 10, 2022
Fix TailwindCSS Standalone CLI not working in Alpine Linux (docker).
See tailwindlabs/tailwindcss#6914.
goofansu added a commit to dsdshcym/CSSKatas that referenced this pull request Jan 10, 2022
Fix TailwindCSS Standalone CLI not working in Alpine Linux (docker).
See tailwindlabs/tailwindcss#6914.
goofansu added a commit to dsdshcym/CSSKatas that referenced this pull request Jan 10, 2022
Fix TailwindCSS Standalone CLI not working in Alpine Linux (docker).
See tailwindlabs/tailwindcss#6914.
goofansu added a commit to dsdshcym/CSSKatas that referenced this pull request Jan 10, 2022
Fix TailwindCSS Standalone CLI not working in Alpine Linux (docker).
See 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