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 # Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash 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 \ RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_STABLE \ && nvm install $NODE_VERSION_STABLE \
&& nvm alias default $NODE_VERSION_STABLE \ && nvm alias default $NODE_VERSION_STABLE \
&& nvm use default \ && nvm use default \
# && npm config set unsafe-perm true \ && curl -f https://get.pnpm.io/v6.16.js | node - add --global pnpm && pnpm upgrade -g && pnpm -v \
&& npm install -g agentkeepalive \ && pnpm config set unsafe-perm true \
&& npm install -g npm@8" && pnpm install -g agentkeepalive
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_STABLE/lib/node_modules 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 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>" LABEL author="Lossless GmbH <hello@lossless.com>"
RUN bash -c "source $NVM_DIR/nvm.sh \ RUN bash -c "source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION_LTS \ && 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"
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules ENV NODE_PATH $NVM_DIR/v$NODE_VERSION_LTS/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION_LTS/bin:$PATH