fix(core): update

This commit is contained in:
Philipp Kunz 2023-03-29 12:13:24 +02:00
parent 1a7aa7b178
commit df97e0f010
2 changed files with 9 additions and 14 deletions

View File

@ -84,18 +84,18 @@ RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selectio
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
# prepare pnpm
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
RUN mkdir -p ${PNPM_HOME}
ENV PATH="$PNPM_HOME:$PATH"
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_STABLE \
&& nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \
# && npm config set unsafe-perm true \
&& npm install -g agentkeepalive \
&& npm install -g npm@8"
&& curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && pnpm upgrade -g && pnpm -v \
&& pnpm config set unsafe-perm true \
&& pnpm install -g agentkeepalive
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_STABLE/bin:$PATH
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
RUN mkdir -p ${PNPM_HOME}
ENV PATH="$PNPM_HOME:$PATH"
RUN curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && pnpm upgrade -g && pnpm -v

View File

@ -2,12 +2,7 @@ FROM hosttoday/ht-docker-node:latest
LABEL author="Lossless GmbH <hello@lossless.com>"
RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_LTS \
&& nvm alias default $NODE_VERSION_LTS \
&& nvm use default \
# && npm config set unsafe-perm true \
&& npm install -g agentkeepalive \
&& npm install -g npm"
&& nvm install $NODE_VERSION_LTS
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH