swai / Dockerfile
ltxlong's picture
Update Dockerfile
4b38317 verified
raw
history blame contribute delete
384 Bytes
FROM node:lts-alpine
# 安装 Git
RUN apk add --no-cache git
# 设置工作目录
WORKDIR /app
RUN git clone https://github.com/ltxlong/search_with_ai.git .
# 启用 Corepack
RUN corepack enable
RUN yarn install
# 构建前端
RUN yarn build
# 切换到 deploy 目录
WORKDIR /app/deploy
EXPOSE 3000
# 使用 docker-compose 启动应用
CMD ["docker", "compose", "up", "-d"]