Fix Dockerfile: Use npm install instead of npm ci
- package-lock.json not in repo (.gitignore) - npm ci requires existing lock file - npm install will generate it during build
This commit is contained in:
parent
90550d34b7
commit
7583712730
1 changed files with 3 additions and 3 deletions
|
|
@ -31,10 +31,10 @@ COPY composer.json ./
|
|||
RUN composer install --no-dev --optimize-autoloader --no-scripts --no-interaction
|
||||
|
||||
# Copy package files
|
||||
COPY package.json package-lock.json* ./
|
||||
COPY package.json ./
|
||||
|
||||
# Install Node dependencies
|
||||
RUN npm ci --legacy-peer-deps
|
||||
# Install Node dependencies (generate package-lock.json if missing)
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# Copy application files
|
||||
COPY . .
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue