issues/27: docker build without yarn.lock
This commit is contained in:
committed by
Valeriy Petrov
parent
617945c730
commit
a6d9526d73
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user