cambios para despliegue
This commit is contained in:
@@ -6,7 +6,7 @@ FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
|
||||
# Install Yarn 1 (classic) – ensures compatibility with existing lockfile
|
||||
RUN npm install -g yarn@1.22.19 && yarn --version
|
||||
RUN if ! command -v yarn >/dev/null || [ "$(yarn --version)" != "1.22.19" ]; then npm install -g yarn@1.22.19 && yarn --version; else echo "Yarn ${YARN_VERSION:-$(yarn --version)} already installed"; fi
|
||||
|
||||
# Install dependencies (cache layer)
|
||||
COPY package.json .
|
||||
|
||||
Reference in New Issue
Block a user