File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ FROM node:23-alpine
22
33WORKDIR /opt/node
44
5+ ENV PNPM_HOME="/pnpm"
6+ ENV PATH="$PNPM_HOME:$PATH" \
7+ NPM_CONFIG_RETRY=5 \
8+ NPM_CONFIG_TIMEOUT=30000
9+
510COPY package.json pnpm-lock.yaml ./
611
712RUN npm install --ignore-scripts -g pnpm
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ FROM node:22-alpine AS base
44FROM base AS builder
55# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine
66# to understand why libc6-compat might be needed.
7+ ENV PNPM_HOME="/pnpm"
8+ ENV PATH="$PNPM_HOME:$PATH"
9+
710RUN apk add --no-cache libc6-compat
811WORKDIR /app
912
Original file line number Diff line number Diff line change 11FROM mcr.microsoft.com/playwright:v1.52.0-jammy
22
3- ENV FORCE_COLOR=1
3+ ENV PNPM_HOME="/pnpm"
4+ ENV PATH="$PNPM_HOME:$PATH" \
5+ NPM_CONFIG_RETRY=5 \
6+ NPM_CONFIG_TIMEOUT=30000
7+
48
59WORKDIR /app
610
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ RUN apk update && \
77 chown -R node:node /home/owasp && \
88 npm install --ignore-scripts -g pnpm
99
10+ ENV PNPM_HOME="/pnpm"
11+ ENV PATH="$PNPM_HOME:$PATH" \
12+ NPM_CONFIG_RETRY=5 \
13+ NPM_CONFIG_TIMEOUT=30000
14+
1015WORKDIR /home/owasp
1116
1217COPY --chmod=444 --chown=node:node package.json pnpm-lock.yaml ./
Original file line number Diff line number Diff line change 11FROM node:22-alpine
22
3- ENV FORCE_COLOR=1
3+ ENV PNPM_HOME="/pnpm"
4+ ENV PATH="$PNPM_HOME:$PATH" \
5+ NPM_CONFIG_RETRY=5 \
6+ NPM_CONFIG_TIMEOUT=30000 \
7+ FORCE_COLOR=1
8+
49
510WORKDIR /app
611
You can’t perform that action at this time.
0 commit comments