Skip to content

Commit 545e857

Browse files
authored
fix(dockerfile): support openai key in docker build (chartdb#366)
1 parent f1d073d commit 545e857

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM node:22-alpine AS builder
22

3+
ARG VITE_OPENAI_API_KEY
4+
35
WORKDIR /usr/src/app
46

57
COPY package.json package-lock.json ./

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ VITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> npm run build
9797
### Running the Docker Container
9898

9999
```bash
100-
docker build -t chartdb .
100+
docker build -t chartdb . (If you want AI capabilities, use `docker build --build-arg VITE_OPENAI_API_KEY=<YOUR_OPEN_AI_KEY> -t chartdb .`)
101101
docker run -p 8080:80 chartdb
102102
```
103103

0 commit comments

Comments
 (0)