From 21d1aa4b2b51e4cb95876d77130f50b982e44331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Gonz=C3=A1lez=20Mu=C3=B1oz?= Date: Wed, 25 Oct 2023 18:14:57 +0200 Subject: [PATCH] Dockerfile: uses Yarn binary --- frontend/Dockerfile | 1 - frontend/Dockerfile.prod | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index c1d41b6e..3ce9f34a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,7 +4,6 @@ WORKDIR /app COPY .yarn ./.yarn COPY package.json yarn.lock .yarnrc.yml ./ -RUN corepack enable && corepack prepare RUN yarn install # If using npm with a `package-lock.json` comment out above and use below instead diff --git a/frontend/Dockerfile.prod b/frontend/Dockerfile.prod index 017df6cb..67827268 100644 --- a/frontend/Dockerfile.prod +++ b/frontend/Dockerfile.prod @@ -3,10 +3,9 @@ FROM node:18.15-bullseye AS deps WORKDIR /app -# COPY .yarn ./.yarn # TODO: no idea if we want this or not, not in repo +COPY .yarn ./.yarn COPY package.json yarn.lock .yarnrc.yml ./ -RUN corepack enable && corepack prepare RUN yarn install # If using npm with a `package-lock.json` comment out above and use below instead