deerp-research / Dockerfile
michally's picture
Update Dockerfile
6e593dc verified
raw
history blame contribute delete
377 Bytes
FROM node:18-alpine
WORKDIR /app
# 每次构建时拉取最新代码
RUN apk add --no-cache git && \
git clone https://github.com/michalrog-afk/deep-research.git . && \
# 确保拉取最新代码
git pull origin main && \
npm install
# 构建应用
RUN npm run build
# 暴露端口
EXPOSE 7860
# 启动命令
CMD ["npm", "run", "start", "--", "-p", "7860"]