代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/Tailchat 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
FROM node:lts-alpine
# use with --build-arg VERSION=xxxx
ARG VERSION
# Working directory
WORKDIR /app/tailchat
RUN ulimit -n 10240
# Install dependencies
RUN npm install -g pnpm@8.3.1
RUN npm install -g tailchat-cli@latest
# Add mc for minio
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mc
RUN chmod +x /usr/local/bin/mc
# Install plugins and sdk dependency
COPY ./tsconfig.json ./tsconfig.json
COPY ./packages ./packages
COPY ./server/packages ./server/packages
COPY ./server/plugins ./server/plugins
COPY ./server/package.json ./server/package.json
COPY ./server/tsconfig.json ./server/tsconfig.json
COPY ./package.json ./pnpm-lock.yaml ./pnpm-workspace.yaml ./.npmrc ./
COPY ./patches ./patches
RUN pnpm install --frozen-lockfile
# Copy client
COPY ./client ./client
RUN pnpm install --frozen-lockfile
# Copy all source
COPY . .
RUN pnpm install --frozen-lockfile
# Build and cleanup (client and server)
ENV NODE_ENV=production
ENV VERSION=$VERSION
RUN pnpm build
# web static service port
EXPOSE 3000
# Start server, ENV var is necessary
CMD ["pnpm", "start:service"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。