Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbilie authored Nov 2, 2024
1 parent 9f23189 commit 5d9b174
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@ VOLUME ~/.npm
COPY --from=fetcher --chown=jenkins:jenkins nvm $NVM_DIR
# copy wrapper scripts
COPY bin /usr/local/bin

USER ${user}

RUN nvm install node
RUN curl -fsSL https://get.pnpm.io/install.sh |ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
ENV PNPM_HOME="/home/jenkins/.local/share/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN pnpm config set store-dir /home/jenkins/.local/share/pnpm/store
# Cypress 13.6.3 because of bugs >13.6.3 https://github.com/cypress-io/cypress/issues/27501
RUN CYPRESS_INSTALL_BINARY=13.6.3 pnpm install -g cypress@13.6.3

RUN nvm install 8.17.0
RUN nvm use 8.17.0
Expand All @@ -72,4 +68,12 @@ RUN node --version
RUN java --version
RUN which java

RUN curl -fsSL https://get.pnpm.io/install.sh |ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
ENV PNPM_HOME="/home/jenkins/.local/share/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN pnpm config set store-dir /home/jenkins/.local/share/pnpm/store

# Cypress 13.6.3 because of bugs >13.6.3 https://github.com/cypress-io/cypress/issues/27501
RUN CYPRESS_INSTALL_BINARY=13.6.3 pnpm install -g cypress@13.6.3

ENTRYPOINT ["/usr/local/bin/jenkins-agent"]

0 comments on commit 5d9b174

Please sign in to comment.