base-node/Dockerfile
Astound c7cebefa20
All checks were successful
release / build (push) Successful in 7m28s
tets
2025-06-22 15:32:55 -05:00

25 lines
788 B
Docker

FROM docker.io/rusian/hyperbola:latest
ENV NVM_DIR=/root/.nvm
ENV NODE_VERSION=lts/*
RUN pacman -Syu --noconfirm --noprogressbar \
&& pacman -S --noconfirm --noprogressbar \
base-devel \
curl \
ca-certificates \
git \
bash \
&& pacman -Scc --noconfirm \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default \
&& npm install -g npm \
&& ln -s "$NVM_DIR/versions/node/$(ls $NVM_DIR/versions/node)/bin/node" /usr/bin/node \
&& ln -s "$NVM_DIR/versions/node/$(ls $NVM_DIR/versions/node)/bin/npm" /usr/bin/npm \
&& ln -s "$NVM_DIR/versions/node/$(ls $NVM_DIR/versions/node)/bin/npx" /usr/bin/npx
CMD ["/bin/bash"]