From 3b6e8e99288af340b0a7ddf79a5af773f832d7c3 Mon Sep 17 00:00:00 2001 From: pahaz Date: Sat, 11 May 2024 14:35:14 +0300 Subject: [PATCH] fix(docker): add yarn 2 support --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 44e6f7b..ce57ac6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,10 @@ RUN echo "# Build time .env config!" >> /home/app/.env && \ echo "DATABASE_URL=undefined" >> /home/app/.env && \ echo "NODE_ENV=production" >> /home/app/.env # Cache packages! -RUN set -ex && yarn install +RUN set -ex && \ + && corepack enable \ + && yarn set version stable \ + && yarn install ADD --chown=app:app . /home/app RUN set -ex && \ yarn build && \