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