Add Docker deployment configuration
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
.git
|
||||
.github
|
||||
.agents
|
||||
.codex
|
||||
node_modules
|
||||
docs/.vitepress/dist
|
||||
docs/.vitepress/cache
|
||||
_test_*
|
||||
docs/public/hands-on-win.zip
|
||||
docs/public/hands-on-mac.zip
|
||||
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
FROM node:20-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN corepack enable && corepack prepare pnpm@9.15.9 --activate
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
RUN pnpm install --frozen-lockfile
|
||||
|
||||
COPY . .
|
||||
RUN pnpm docs:build
|
||||
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
COPY --from=build /app/docs/.vitepress/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"packageManager": "pnpm@9.15.9",
|
||||
"description": "Digi Agent Builder 3.0 智能体开发示例指导书 Web 版",
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev docs",
|
||||
|
||||
Reference in New Issue
Block a user