aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-14 21:02:15 +0900
committernsfisis <nsfisis@gmail.com>2026-02-14 21:02:15 +0900
commit2f1a8a1c599300d0964d7fbbfd824e2d74f0bf4a (patch)
tree4ef25f1332de445ad756f7f40df627f288f1438f /frontend/Dockerfile
parent516cc00ba4c9d4a54ad2b261a5a4ff4164b06268 (diff)
downloadphperkaigi-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 'frontend/Dockerfile')
-rw-r--r--frontend/Dockerfile13
1 files changed, 7 insertions, 6 deletions
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