ci: pass docker arg

This commit is contained in:
Anton Voylenko 2025-12-09 22:03:50 +02:00
commit 793b3e63dd
2 changed files with 9 additions and 5 deletions

View file

@ -9,9 +9,15 @@ WORKDIR /usr/src/app
FROM base AS deps
ARG USE_EDGE=false
COPY package*.json ./
RUN npm ci --only=production --ignore-scripts
RUN if [ "$USE_EDGE" = "true" ]; then \
npm install --save-exact --omit=dev --ignore-scripts github:pedroslopez/whatsapp-web.js#main; \
else \
npm ci --only=production --ignore-scripts; \
fi
# Create the final stage
FROM base