fix: Fallback to npm install if no package-lock.json
This commit is contained in:
@@ -6,8 +6,8 @@ WORKDIR /app
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --omit=dev
|
||||
# Install dependencies (use npm install if no lock file)
|
||||
RUN if [ -f package-lock.json ]; then npm ci --omit=dev; else npm install --omit=dev; fi
|
||||
|
||||
# Copy all source code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user