Skip to content

Fix Dockerfile: missing lock files, PHP extensions, and Alpine deps - #1401

Merged
fatihalp merged 2 commits into
masterfrom
copilot/fix-docker-build-errors
Jun 1, 2026
Merged

Fix Dockerfile: missing lock files, PHP extensions, and Alpine deps#1401
fatihalp merged 2 commits into
masterfrom
copilot/fix-docker-build-errors

Conversation

Copilot AI commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

docker build fails on a clean clone because both composer.lock and package-lock.json are gitignored, and two required PHP extensions (intl, zip) plus their Alpine build dependencies are absent.

Changes

  • Optional composer.lock copyCOPY composer.json composer.lock ./COPY composer.json composer.lock* ./ so the build doesn't fail when the lock file isn't present
  • npm cinpm installnpm ci requires package-lock.json; since it's gitignored, switch to npm install
  • Missing Alpine packages — add icu-dev and libzip-dev to apk add
  • Missing PHP extensions — add intl and zip to docker-php-ext-install
-    libxml2-dev \
+    libxml2-dev \
+    icu-dev \
+    libzip-dev \
     && docker-php-ext-configure gd --with-freetype --with-jpeg \
-    && docker-php-ext-install pdo pdo_mysql mbstring exif pcntl bcmath gd opcache
+    && docker-php-ext-install pdo pdo_mysql mbstring exif pcntl bcmath gd opcache intl zip

-COPY composer.json composer.lock ./
+COPY composer.json composer.lock* ./

-    && npm ci \
+    && npm install \

Copilot AI changed the title [WIP] Fix docker build fails due to missing files Fix Dockerfile: missing lock files, PHP extensions, and Alpine deps Jun 1, 2026
Copilot AI requested a review from fatihalp June 1, 2026 10:14
@fatihalp
fatihalp marked this pull request as ready for review June 1, 2026 11:24
@fatihalp
fatihalp merged commit c35454b into master Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker build fails - composer.lock and package-lock.json are missing

2 participants