diff options
Diffstat (limited to 'storefront/Dockerfile')
| -rw-r--r-- | storefront/Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storefront/Dockerfile b/storefront/Dockerfile index b6c1da8..b3f5cb8 100644 --- a/storefront/Dockerfile +++ b/storefront/Dockerfile @@ -2,7 +2,7 @@ FROM node:18-alpine AS deps
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* ./
-RUN npm ci
+RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
# Rebuild the source code only when needed
FROM node:18-alpine AS builder
|
