From 2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 14 Feb 2026 21:02:15 +0900 Subject: build: introduce npm workspaces for unified dependency management Consolidate frontend, typespec, and worker/php into a single npm workspaces setup with one root lockfile. Update Dockerfiles to use repository root as build context, and adjust justfile, CI workflow, and compose files accordingly. Co-Authored-By: Claude Opus 4.6 --- worker/php/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'worker/php/Dockerfile') diff --git a/worker/php/Dockerfile b/worker/php/Dockerfile index 18e715b..d51458a 100644 --- a/worker/php/Dockerfile +++ b/worker/php/Dockerfile @@ -36,7 +36,7 @@ RUN cd php-src && \ git clean -fd && \ : -COPY php-wasm.c /src/ +COPY worker/php/php-wasm.c /src/ RUN cd php-src && \ emcc \ @@ -71,12 +71,13 @@ FROM node:22.14 WORKDIR /app ENV NODE_ENV=production -COPY --from=wasm-builder /src/php-wasm.js /src/php-wasm.wasm /app/ -COPY package.json package-lock.json /app/ +COPY --from=wasm-builder /src/php-wasm.js /src/php-wasm.wasm /app/worker/php/ +COPY package.json package-lock.json ./ +COPY worker/php/package.json worker/php/ +RUN npm install -w worker/php --omit=dev -RUN npm install - -COPY index.mjs exec.mjs /app/ +COPY worker/php/index.mjs worker/php/exec.mjs worker/php/ +WORKDIR /app/worker/php ENTRYPOINT ["node", "index.mjs"] EXPOSE 80 -- cgit v1.3.1