update node Dockerfile
parent
0d87d4e4d1
commit
f49b818a0f
|
@ -1,8 +1,12 @@
|
|||
FROM node:16.17.1
|
||||
|
||||
LABEL smallkoudai <smallkoudai@gmail.com>
|
||||
LABEL beaconfire <beaconfireinc.com>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates curl rsync && \
|
||||
rm -rf /var/lib/apt/lists/ && \
|
||||
git config --global --add safe.directory '*'
|
||||
git config --global --add safe.directory '*' && \
|
||||
npm install -g pnpm && \
|
||||
pnpm config set store-dir ~/.pnpm && \
|
||||
pnpm config set modules-dir ~/.pnpm && \
|
||||
pnpm config set state-dir ~/.pnpm/state
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
FROM ubuntu:23.04
|
||||
|
||||
LABEL smallkoudai <smallkoudai@gmail.com>
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends ca-certificates curl git git-lfs && \
|
||||
mkdir -p $HOME/.nvm && \
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash && \
|
||||
. $HOME/.bashrc && \
|
||||
nvm install 16.20.1 && nvm alias default && nvm install 18.17.0 && nvm install 20.5.0
|
||||
ENV NVM_DIR=$HOME/.nvm
|
Loading…
Reference in New Issue