feat: add Dockerfiles and workflow configurations for CRUD, Ingest, and Web APIs
release-web / release (push) Has been cancelled

This commit is contained in:
marco.chan committed 2026-09-04 12:38:53 +08:00
1 parent d3b6c5032f
commit d8b7b9735b
7 files changed
+334

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
# syntax=docker/dockerfile:1.7
# Build from the monorepo root context so this image can use:
# - apps/web
# - packages/contracts
FROM node:20-alpine AS base
WORKDIR /workspace
RUN corepack enable
FROM base AS deps
COPY package.json yarn.lock .yarnrc.yml ./
COPY .yarn/ ./.yarn/
COPY apps/web/package.json ./apps/web/package.json
COPY packages/contracts/package.json ./packages/contracts/package.json
RUN YARN_NODE_LINKER=node-modules yarn install --immutable
FROM deps AS build
COPY apps/web ./apps/web
COPY packages/contracts ./packages/contracts
RUN yarn workspace web build
FROM nginx:1.27-alpine AS runtime
COPY --from=build /workspace/apps/web/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]