diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-14 21:02:15 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-14 21:02:15 +0900 |
| commit | 2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a (patch) | |
| tree | 4ef25f1332de445ad756f7f40df627f288f1438f /worker/php/Dockerfile | |
| parent | 516cc00ba4c9d4a54ad2b261a5a4ff4164b06268 (diff) | |
| download | phperkaigi-2026-albatross-2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a.tar.gz phperkaigi-2026-albatross-2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a.tar.zst phperkaigi-2026-albatross-2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'worker/php/Dockerfile')
| -rw-r--r-- | worker/php/Dockerfile | 13 |
1 files changed, 7 insertions, 6 deletions
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 |
