Skip to content

How to install for specific platform? #5436

Answered by danstewart
danstewart asked this question in Q&A
Discussion options

You must be logged in to vote

Have went with this

RUN bash -c "npm install --production --global sass @swc/core @swc/cli chokidar && rm -rf /root/.npm && rm -rf /usr/local/lib/node_modules/@swc/core/node_modules/@swc/core-{android,darwin,freebsd,win32,linux-arm,linux-x64-musl}*"

Another option would be to use the rust binary (installed in a different docker build stage) but there are some slight differences and it's a similar end image size:
https://crates.io/crates/swc_cli

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by danstewart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant