From a6d9526d739b793c9e42df137a0edf7e59990d70 Mon Sep 17 00:00:00 2001 From: Valery Petrov Date: Fri, 29 May 2026 20:29:57 +0300 Subject: [PATCH] issues/27: docker build without yarn.lock --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 198958c..80ff4ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM node:24-alpine AS assets WORKDIR /app -COPY package.json yarn.lock ./ -RUN corepack enable && yarn install --frozen-lockfile +COPY package.json yarn.lock* ./ +RUN corepack enable && if [ -f yarn.lock ]; then yarn install --frozen-lockfile; else yarn install; fi COPY webpack.config.js ./ COPY assets ./assets COPY public ./public