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

How to use in dockerfile ? #1081

Open
seepine opened this issue Dec 26, 2023 · 1 comment
Open

How to use in dockerfile ? #1081

seepine opened this issue Dec 26, 2023 · 1 comment

Comments

@seepine
Copy link

seepine commented Dec 26, 2023

dockerfile

FROM mcr.microsoft.com/devcontainers/base:jammy
SHELL ["/bin/bash", "-c"]
WORKDIR /workspaces
RUN curl -fsSL https://fnm.vercel.app/install | bash
RUN fnm install 20.10

The error

...
/bin/bash: line 1: fnm: command not found
...
@Schniz
Copy link
Owner

Schniz commented Dec 26, 2023

Try to use ~/.local/share/fnm/fnm. The install script doesn't link fnm to your /usr/bin so it isn't available without a shell session.

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

No branches or pull requests

2 participants