mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
Sync uncommitted changes across bot-docs, cloud, and docs apps. Add SDK documentation and project registry.
20 lines
527 B
Docker
20 lines
527 B
Docker
FROM node:20-alpine AS builder
|
|
RUN corepack enable
|
|
WORKDIR /app
|
|
|
|
# Copy workspace root config
|
|
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml turbo.json ./
|
|
|
|
# Copy only the packages needed and the cloud app
|
|
COPY packages/ ./packages/
|
|
COPY apps/cloud/ ./apps/cloud/
|
|
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm --filter @hanzo/cloud build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/apps/cloud/out /usr/share/nginx/html
|
|
COPY apps/cloud/nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|