Skip to content

Commit cc56ec8

Browse files
author
gptkong
committed
remove all comments
1 parent 8571de3 commit cc56ec8

File tree

6 files changed

+16
-68
lines changed

6 files changed

+16
-68
lines changed

react-cn-docs/Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,16 @@ FROM node:22-alpine
22

33
RUN apk add --no-cache git curl
44

5-
# 设置工作目录
65
WORKDIR /app
76

8-
# 克隆指定的 GitHub 仓库
97
RUN git clone https://github.com/reactjs/zh-hans.react.dev.git
108

119
WORKDIR /app/zh-hans.react.dev
1210

13-
# 安装项目依赖
1411
RUN yarn
1512

16-
# 构建项目
1713
RUN yarn run build
1814

19-
# 暴露 3333 端口
2015
EXPOSE 3000
2116

22-
# 启动项目
2317
CMD ["yarn", "run", "start"]

react-flow/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
1-
# 使用 Alpine 作为基础镜像,Alpine 是一个非常小的 Linux 发行版
21
FROM node:22-alpine
32

4-
# 安装 git,因为 Alpine 默认不包含 git
53
RUN apk add --no-cache git
64

7-
# 设置工作目录
85
WORKDIR /app
96

10-
# 克隆指定的 GitHub 仓库
117
RUN git clone https://github.com/xyflow/web.git
128

13-
# 进入克隆的仓库目录
149
WORKDIR /app/web
1510

16-
# 安装 pnpm(Alpine 镜像中默认没有 pnpm)
1711
RUN npm install -g pnpm
1812

19-
# 安装项目依赖
2013
RUN pnpm install
2114

22-
# 构建项目
2315
RUN pnpm run build
2416

2517
WORKDIR /app/web/sites/reactflow.dev
2618

2719
EXPOSE 3000
2820

29-
# 启动项目
3021
CMD ["pnpm", "run", "start"]

react-hook-form/Dockerfile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1-
# 使用 Alpine 作为基础镜像,Alpine 是一个非常小的 Linux 发行版
21
FROM node:22-alpine
32

4-
# 安装 git,因为 Alpine 默认不包含 git
53
RUN apk add --no-cache git
64

7-
# 设置工作目录
85
WORKDIR /app
96

10-
# 克隆指定的 GitHub 仓库
117
RUN git clone https://github.com/react-hook-form/documentation.git
128

13-
# 进入克隆的仓库目录
149
WORKDIR /app/documentation
1510

16-
# 安装 pnpm(Alpine 镜像中默认没有 pnpm)
1711
RUN npm install -g pnpm
1812

19-
# 安装项目依赖
2013
RUN pnpm install
2114

22-
# 构建项目
2315
RUN pnpm run build
2416

2517
EXPOSE 3000
2618

27-
# 启动项目
2819
CMD ["pnpm", "run", "start"]

shadcn-ui-docs/Dockerfile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
1-
# 使用 Alpine 作为基础镜像,Alpine 是一个非常小的 Linux 发行版
21
FROM node:22-alpine
32

4-
# 安装 git,因为 Alpine 默认不包含 git
53
RUN apk add --no-cache git
64

7-
# 设置工作目录
85
WORKDIR /app
96

10-
# 克隆指定的 GitHub 仓库
117
RUN git clone https://github.com/shadcn-ui/ui.git
128

13-
# 进入克隆的仓库目录
149
WORKDIR /app/ui
1510

16-
# 安装 pnpm(Alpine 镜像中默认没有 pnpm)
1711
RUN npm install -g pnpm
1812

19-
# 安装项目依赖
2013
RUN pnpm install
2114

22-
# 进入 www 目录(假设仓库中有 www 目录)
2315
WORKDIR /app/ui/apps/www
2416

25-
# 构建项目
2617
RUN pnpm run build
2718

28-
# 暴露 3333 端口
2919
EXPOSE 3333
3020

31-
# 启动项目
3221
CMD ["pnpm", "run", "start"]

tailwindcss-docs/Dockerfile

Lines changed: 16 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
# Use Node.js as the base image
2-
FROM node:22-alpine AS base
3-
4-
# Install git and other dependencies
5-
RUN apk add --no-cache git
6-
7-
# Install pnpm (package manager used in the project)
8-
RUN corepack enable && corepack prepare pnpm@latest --activate
9-
10-
# Set working directory
11-
WORKDIR /app
12-
13-
# Clone the repository
14-
RUN git clone https://github.com/tailwindlabs/tailwindcss.com.git .
15-
16-
# Install dependencies
17-
RUN pnpm install --frozen-lockfile
18-
19-
# Build the application
20-
RUN pnpm build
21-
22-
# Expose port
23-
EXPOSE 3000
24-
25-
# Set the command to run the application
1+
FROM node:22-alpine AS base
2+
3+
RUN apk add --no-cache git
4+
5+
RUN corepack enable && corepack prepare pnpm@latest --activate
6+
7+
WORKDIR /app
8+
9+
RUN git clone https://github.com/tailwindlabs/tailwindcss.com.git .
10+
11+
RUN pnpm install --frozen-lockfile
12+
13+
RUN pnpm build
14+
15+
EXPOSE 3000
16+
2617
CMD ["pnpm","run", "start"]

tanstack/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
# 使用 Node.js 22 Alpine 镜像,Alpine 是一个轻量级的 Linux 发行版
21
FROM node:22-alpine
32

4-
# 创建 tanstack 目录并设置为工作目录
53
RUN mkdir -p /tanstack
64
WORKDIR /tanstack
75

8-
# 安装 git,因为 Alpine 镜像默认不包含 git
96
RUN apk add --no-cache git
107

11-
# 拉取各个项目
128
RUN git clone https://github.com/gptkong/tanstack.com.git
139
RUN git clone https://github.com/TanStack/query.git
1410
RUN git clone https://github.com/TanStack/router.git
1511
RUN git clone https://github.com/TanStack/table.git
1612

17-
# 进入 tanstack.com 目录
1813
WORKDIR /tanstack/tanstack.com
1914

20-
# 安装依赖,使用 pnpm
2115
RUN npm install -g pnpm
2216
RUN pnpm i
2317
RUN pnpm build
2418

25-
# 暴露 3000 端口
2619
EXPOSE 3000
2720

28-
# 运行开发服务器
2921
CMD ["node", ".output/server/index.mjs"]

0 commit comments

Comments
 (0)