This commit is contained in:
parent
a674903255
commit
1fb6a6faf1
24
Dockerfile
24
Dockerfile
|
|
@ -50,22 +50,22 @@ COPY --from=s3build /app/dist /dist
|
|||
#============================================ chatdesk-ui ========================================================
|
||||
FROM nvcr.io/nvidia/tritonserver:24.04-py3-min AS chataibuilder
|
||||
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
||||
apt-get update && \
|
||||
apt-get install -y nodejs && \
|
||||
npm install -g npm@10.8.2 pnpm@10.9.0
|
||||
# RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
||||
# apt-get update && \
|
||||
# apt-get install -y nodejs && \
|
||||
# npm install -g npm@10.8.2 pnpm@10.9.0
|
||||
|
||||
WORKDIR /app
|
||||
# WORKDIR /app
|
||||
|
||||
# 拷贝依赖文件并安装生产依赖
|
||||
COPY chatdesk-ui/package.json chatdesk-ui/package-lock.json ./
|
||||
RUN npm ci
|
||||
# # 拷贝依赖文件并安装生产依赖
|
||||
# COPY chatdesk-ui/package.json chatdesk-ui/package-lock.json ./
|
||||
# RUN npm ci
|
||||
|
||||
# 拷贝全部源码
|
||||
COPY chatdesk-ui/. .
|
||||
# # 拷贝全部源码
|
||||
# COPY chatdesk-ui/. .
|
||||
|
||||
# 构建项目
|
||||
RUN npm run build
|
||||
# # 构建项目
|
||||
# RUN npm run build
|
||||
|
||||
|
||||
#============================================ gotrue build======================================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue