mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
fix: ensure config.json is copied to production docker image (#43)
* fix: ensure config.json is copied to production docker image Co-Authored-By: Han Xiao <han.xiao@jina.ai> * fix: remove unused config parameter in reduce callback Co-Authored-By: Han Xiao <han.xiao@jina.ai> * refactor: simplify tools configuration using Object.fromEntries Co-Authored-By: Han Xiao <han.xiao@jina.ai> * test: increase timeout for async search test Co-Authored-By: Han Xiao <han.xiao@jina.ai> * test: remove setTimeout from agent test Co-Authored-By: Han Xiao <han.xiao@jina.ai> * test: remove trivial tests and improve test coverage Co-Authored-By: Han Xiao <han.xiao@jina.ai> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
committed by
GitHub
parent
3e60f712d9
commit
a4de4cc444
@@ -28,7 +28,8 @@ COPY package*.json ./
|
||||
# Install production dependencies only
|
||||
RUN npm install --production --ignore-scripts
|
||||
|
||||
# Copy built files from the build stage
|
||||
# Copy config.json and built files from builder
|
||||
COPY --from=builder /app/config.json ./
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
# Set environment variables (Recommended to set at runtime, avoid hardcoding)
|
||||
@@ -41,4 +42,4 @@ ENV BRAVE_API_KEY=${BRAVE_API_KEY}
|
||||
EXPOSE 3000
|
||||
|
||||
# Set startup command
|
||||
CMD ["node", "./dist/server.js"]
|
||||
CMD ["node", "./dist/server.js"]
|
||||
|
||||
Reference in New Issue
Block a user