Fix Dockerfile: Remove composer.lock dependency
- composer.lock is in .gitignore - Let composer generate it during build - Allows Docker build to succeed without local dependencies
This commit is contained in:
parent
b7125cf2b7
commit
90550d34b7
1 changed files with 2 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
# Copy composer files
|
# Copy composer files
|
||||||
COPY composer.json composer.lock ./
|
COPY composer.json ./
|
||||||
|
|
||||||
# Install PHP dependencies
|
# Install PHP dependencies (generate composer.lock if missing)
|
||||||
RUN composer install --no-dev --optimize-autoloader --no-scripts --no-interaction
|
RUN composer install --no-dev --optimize-autoloader --no-scripts --no-interaction
|
||||||
|
|
||||||
# Copy package files
|
# Copy package files
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue