outline - 二开
更新版本
从https://github.com/outline/outline/releases下载最新的zip源码包
1.修改github同步代码
git checkout github #
git pull解压zip包
删除wiki中除了.git文件夹外的所有文件,复制解压之后的所有文件
执行script脚本,删除部分不需要的文件
export sh outline/outline-delete-folder.sh && \ sh outline/outline-delete-single-file.sh && \ sh outline/outline-delete-match-folder.sh
2.创建更新分支,从master迁出分支
bash
$ git checkout master
$ git pull
$ git checkout -b lyl_1_2_0
$ git merge githubCAUTION
解决冲突
bash
# 安装依赖
$ yarn install --registry=http://nexus.istr.cn/repository/npm-all/
# 执行测试
$ yarn dev:watchCorepack 是 Node.js 内置的工具,但可能没有启用。运行以下命令启用它:
bash
$ corepack enable启用 Corepack 后,它会自动管理项目中指定的 Yarn 版本。运行以下命令安装并激活项目所需的 Yarn 版本:
bash
$ corepack prepare yarn@4.11.0 --activate安装正确的 Yarn 版本后,运行以下命令验证当前 Yarn 版本是否正确:
bash
$ yarn -vdocker基础镜像
docker build -t registry.cn-hangzhou.aliyuncs.com/istr/outline:base -f Dockerfile.base . && \
docker push registry.cn-hangzhou.aliyuncs.com/istr/outline:basedockerfile
FROM hub.istr.cn/travlemonitor/node:24.10.0 AS base
WORKDIR /code
COPY ./package.json ./yarn.lock ./.yarnrc.yml ./
COPY ./patches ./patches
RUN apt-get update && apt-get install -y cmake
ENV NODE_OPTIONS="--max-old-space-size=24000"
RUN corepack enable
RUN yarn install --immutable --network-timeout 1000000 && yarn cache clean
COPY . .
RUN yarn build
RUN yarn workspaces focus --production && yarn cache clean
# ---
FROM hub.istr.cn/travlemonitor/node:24.10.0 AS runner
WORKDIR /app
ENV NODE_ENV production
COPY --from=base /code/build ./build
COPY --from=base /code/server ./server
COPY --from=base /code/public ./public
COPY --from=base /code/.sequelizerc ./.sequelizerc
COPY --from=base /code/node_modules ./node_modules
COPY --from=base /code/package.json ./package.json
COPY --from=base /code/.env.stage ./.env
ENV FILE_STORAGE_LOCAL_ROOT_DIR /data/outline/data
RUN mkdir -p "$FILE_STORAGE_LOCAL_ROOT_DIR"
VOLUME /data/outline/data
EXPOSE 3000
CMD ["node", "build/server/index.js"]yarn install --registry=http://nexus.istr.cn/repository/npm-all/RUN sed -i "s@dl-cdn.alpinelinux.org/@mirrors.aliyun.com/@g" /etc/apk/repositories
RUN apk update && apk add --no-cache curl && apk add --no-cache ca-certificates && apk add --no-cache bash