Commit Graph

5 Commits

Author SHA1 Message Date
soroush.asadi b2ed75cf2d Fix build: collapse deps+builder, add libc6-compat
deploy / deploy (push) Failing after 3m16s
The cross-stage COPY --from=deps /app/node_modules caused
sh: next: not found in the builder stage. Fix by merging deps
and builder into one stage — npm ci and next build run in the
same layer so node_modules is always present when building.

Also add libc6-compat (required by Next.js SWC binaries on Alpine)
to both builder and runner stages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 15:17:07 +03:30
soroush.asadi 20e14d3a28 Fix base image: use mirror direct path, switch to node:20-alpine
deploy / deploy (push) Failing after 7m35s
Mirror exposes images as mirror.soroushasadi.com/<image> directly,
not via /repository/docker-group/ path. Also node:20-alpine is already
cached on the server; node:20-slim was never pulled.

Dockerfile: apk instead of apt-get, addgroup/adduser instead of
groupadd/useradd (Alpine BusyBox compatibility).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 14:46:05 +03:30
soroush.asadi be658e9d77 Correct mirror hostname to soroushasadi.com, HTTP protocol
deploy / deploy (push) Failing after 11s
ci / build (pull_request) Failing after 5s
Previous commit introduced a typo (soroushasad vs soroushasadi).
All references now use:
  npm    -> http://mirror.soroushasadi.com/repository/npm-group/
  docker -> mirror.soroushasadi.com/repository/docker-group/  (no protocol in image refs)

Also restore Dockerfile ARG NPM_TOKEN + COPY .npmrc that were lost
when the soroush-cicd skill regenerated the file, and set the
NODE_IMAGE ARG default back to the mirror path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 13:49:51 +03:30
soroush.asadi 13241612fe Fix mirror hostname and protocol (soroushasad.com, HTTP)
All references updated from mirror.soroushasadi.com (https) to
mirror.soroushasad.com (http):
  - .npmrc: registry uses http://
  - Dockerfile: syntax frontend + NODE_IMAGE ARG + npm auth line
  - docker-compose.yml: NODE_IMAGE default
  - deploy.yml: docker login/logout + NODE_IMAGE env
  - ci.yml: container image + NODE_IMAGE build-arg + npm auth line

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 13:47:18 +03:30
soroush.asadi add78d8460 first commit
ci / build (push) Failing after 23s
deploy / deploy (push) Failing after 10m12s
2026-05-31 12:47:02 +03:30