feat: add docker support

This commit is contained in:
kaiffeetasse
2025-02-12 21:37:48 +01:00
parent 7ef3fe3492
commit 1dea958a01
2 changed files with 32 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:18-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
FROM node:18-alpine AS runner
WORKDIR /app
COPY --from=builder /app/.output .output
COPY --from=builder /app/node_modules node_modules
COPY --from=builder /app/package.json .
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]

View File

@ -86,6 +86,18 @@ yarn preview
bun run preview bun run preview
``` ```
### Docker
Build the Docker image:
```
docker build -t deep-research-web .
```
Run the Docker image:
```
docker run -p 3000:3000 deep-research-web
```
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information. Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
## License ## License