From 0ab851d7bb49aa78fbf66498b1f07b953b45b1e3 Mon Sep 17 00:00:00 2001 From: dappsar Date: Tue, 17 Dec 2024 22:54:36 -0300 Subject: [PATCH] [fix] :green_heart: fix yarn error in dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f9060e6..5f07321 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,10 @@ FROM node:18-alpine AS deps WORKDIR /app COPY package.json yarn.lock ./ -RUN apk add --no-cache libc6-compat && npm i -g yarn && yarn install --frozen-lockfile +RUN apk add --no-cache libc6-compat bash curl && \ + curl -o- -L https://yarnpkg.com/install.sh | bash && \ + export PATH="$PATH:$(yarn global bin)" && \ + yarn install --frozen-lockfile # FROM node:18-alpine AS builder WORKDIR /app