From 26d4725b083c796e8f51705925df2488076cd01b Mon Sep 17 00:00:00 2001 From: oonyeje Date: Mon, 24 Feb 2025 00:25:00 -0500 Subject: [PATCH] - add force option --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b92baf3..589129c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM node:20-alpine AS builder WORKDIR /app COPY package*.json ./ -RUN npm install -g yarn && yarn install --frozen-lockfile --production=false --cache-folder /yarn-cache && yarn cache clean --force && rm -rf /yarn-cache /tmp/* +RUN npm install -g yarn --force && yarn install --frozen-lockfile --production=false --cache-folder /yarn-cache && yarn cache clean --force && rm -rf /yarn-cache /tmp/* COPY . . # RUN yarn build # Uncomment if you have a build step @@ -11,7 +11,7 @@ FROM node:20-alpine WORKDIR /app COPY --from=builder /app/package*.json ./ COPY --from=builder /app/yarn.lock ./ -RUN npm install -g yarn && yarn install --frozen-lockfile --production --cache-folder /yarn-cache && yarn cache clean --force && rm -rf /yarn-cache /tmp/* +RUN npm install -g yarn --force && yarn install --frozen-lockfile --production --cache-folder /yarn-cache && yarn cache clean --force && rm -rf /yarn-cache /tmp/* COPY --from=builder /app/ . EXPOSE 3000