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 --- frontend/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'frontend/Dockerfile') diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 7e2e616..d78afc3 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -6,17 +6,18 @@ ARG ALBATROSS_BASE_PATH WORKDIR /app ENV NODE_ENV=production -COPY package.json package-lock.json . -RUN npm install --include=dev +COPY package.json package-lock.json ./ +COPY frontend/package.json frontend/ +RUN npm install -w frontend --include=dev -COPY . . +COPY frontend/ frontend/ ENV ALBATROSS_BASE_PATH="$ALBATROSS_BASE_PATH" -RUN npm run build +RUN npm -w frontend run build ################################################################################ FROM nginx:1.27-alpine -COPY --from=builder /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY --from=builder /app/frontend/dist /usr/share/nginx/html +COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf EXPOSE 80 -- cgit v1.3.1