Skip to content

[v4] Standalone on Alpine ARM64 is just bun and not the compiled binary #14569

Closed
@henrikbjorn

Description

@henrikbjorn

What version of Tailwind CSS are you using?

v4 Alpha 25 (Also tested with alpha 24)

What build tool (or framework if it abstracts the build tool) are you using?

None.

What version of Node.js are you using?

20.11.1,

What browser are you using?

Not relevant

What operating system are you using?

macOS, Alpine on a MacBook Pro M2

Reproduction URL

Not relevant

Describe your issue

This does not work for me.

If I download the standalone from the latest release and run the binary in an alpine container I get this output:

/app # /bin/tailwindcss

Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.1.26+0a37423ba)

Usage: bun <command> [...flags] [...args]

Commands:
  run       ./my-script.ts       Execute a file with Bun
            lint                 Run a package.json script
  test                           Run unit tests with Bun
  x         bun-repl             Execute a package binary (CLI), installing if needed (bunx)
  repl                           Start a REPL session with Bun
  exec                           Run a shell script directly with Bun

  install                        Install dependencies for a package.json (bun i)
  add       @shumai/shumai       Add a dependency to package.json (bun a)
  remove    babel-core           Remove a dependency from package.json (bun rm)
  update    hono                 Update outdated dependencies
  outdated                       Display latest versions of outdated dependencies
  link      [<package>]          Register or link a local npm package
  unlink                         Unregister a local npm package
  patch <pkg>                    Prepare a package for patching
  pm <subcommand>                Additional package management utilities

  build     ./a.ts ./b.jsx       Bundle TypeScript & JavaScript into a single file

  init                           Start an empty Bun project from a blank template
  create    svelte               Create a new project from a template (bun c)
  upgrade                        Upgrade to latest version of Bun.
  <command> --help               Print help text for command.

Learn more about Bun:            https://bun.sh/docs
Join our Discord community:      https://bun.sh/discord

Which is just bun. The above is done in an Alpine container on a M2 MacBook Pro.

Getting the same binary but for macos gives the correct and following output:

~/Downloads ❯❯❯ xattr -d com.apple.quarantine  tailwindcss-macos-arm64                                                                                                                                                                                                                                             ✘
~/Downloads ❯❯❯ ./tailwindcss-macos-arm64
≈ tailwindcss v4.0.0-alpha.25

Usage:
  tailwindcss [--input input.css] [--output output.css] [--watch] [options…]

Options:
  -i, --input ··········· Input file
  -o, --output ·········· Output file
  -w, --watch ··········· Watch for changes and rebuild as needed
  -m, --minify ·········· Optimize and minify the output
      --optimize ········ Optimize the output without minifying
      --cwd ············· The current working directory [default: `.`]
  -h, --help ············ Display usage information
~/Downloads ❯❯❯

Also tried downloading the repository. Turning on corepack and then running pnpm run build. Which results in the same result.

Skærmbillede 2024-10-02 kl  10 27 07

Attached screenshot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions