feat(workspaces): complete milestone 1 with robust deployment primitives

This commit is contained in:
mkorwel
2026-03-19 00:19:14 -07:00
parent d6490cfd47
commit 0c04e7c6ef
6 changed files with 58 additions and 22 deletions
+8 -8
View File
@@ -1,20 +1,20 @@
/**
* @license
* Copyright 2026 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
# Copyright 2026 Google LLC
# SPDX-License-Identifier: Apache-2.0
# Standard Hub Dockerfile
FROM node:20-slim
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# In a monorepo, we typically don't have a local package-lock.json
# so we use npm install instead of npm ci for individual package builds.
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 8080
CMD ["npm", "start"]
# Use node directly for better signal handling (SIGTERM)
CMD ["node", "dist/index.js"]