add docker

This commit is contained in:
Samuel Jędrzejewski
2025-02-07 02:47:00 +01:00
parent 85451ce4fa
commit 5426e5b48e
4 changed files with 55 additions and 0 deletions

2
.env.example Normal file
View File

@@ -0,0 +1,2 @@
FIRECRAWL_KEY="YOUR_KEY"
OPENAI_KEY="YOUR_KEY"

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:18-alpine
WORKDIR /app
COPY . .
COPY package.json.docker ./package.json
COPY .env.example ./.env.local
RUN npm install
CMD ["npm", "start"]

7
docker-compose.yml Normal file
View File

@@ -0,0 +1,7 @@
services:
deep-research:
build: .
env_file:
- .env.local
tty: true
stdin_open: true

34
package.json.docker Normal file
View File

@@ -0,0 +1,34 @@
{
"name": "open-deep-research",
"version": "0.0.1",
"main": "index.ts",
"scripts": {
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"tsx": "tsx --env-file=.env.local",
"start": "tsx src/run.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"description": "",
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.4.1",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.13.0",
"prettier": "^3.4.2",
"tsx": "^4.19.2",
"typescript": "^5.7.3"
},
"dependencies": {
"@ai-sdk/openai": "^1.1.9",
"@mendable/firecrawl-js": "^1.16.0",
"ai": "^4.1.17",
"js-tiktoken": "^1.0.17",
"lodash-es": "^4.17.21",
"p-limit": "^6.2.0",
"zod": "^3.24.1"
},
"engines": {
"node": "22.x"
}
}