mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
Dockerize repo, create Dockerfile, docker-compose.yml and update README.md (#17)
--- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jina-ai/node-DeepResearch?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
28
Dockerfile
Normal file
28
Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
# Use Node.js 20 as the base image
|
||||
FROM node:20
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
|
||||
# Copy the application code
|
||||
COPY . .
|
||||
|
||||
# Set environment variables
|
||||
ENV GEMINI_API_KEY=${GEMINI_API_KEY}
|
||||
ENV JINA_API_KEY=${JINA_API_KEY}
|
||||
ENV BRAVE_API_KEY=${BRAVE_API_KEY}
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Expose the port the app runs on
|
||||
EXPOSE 3000
|
||||
|
||||
# Set the default command to run the application
|
||||
CMD ["npm", "run", "serve"]
|
||||
Reference in New Issue
Block a user