chore(docker): switch to node:22-bookworm-slim and add .env.example
- Dockerfile base now node:22-bookworm-slim (glibc) so better-sqlite3 uses prebuilt binaries and node-gyp/python build deps are no longer required. Also satisfies @discordjs/voice node>=22.12 engine req. - Drop redundant `mkdir -p dist` (build script handles it). - Add .env.example covering TOKEN, APPID, PREFIX, DBPATH, GUILDID, CHZZK_NID_AUT/SES, SIGNATURE_HOST, TTSPATH, DEV, DEBUG, REPLACETEXT. - README: update base image note.
This commit is contained in:
@@ -100,7 +100,7 @@ docker build -t tts_bot .
|
||||
docker run --env-file .env -v $(pwd)/db:/app/db tts_bot
|
||||
```
|
||||
|
||||
Dockerfile은 `node:20-alpine` 기반이며 `ffmpeg`을 설치한다.
|
||||
Dockerfile은 `node:22-bookworm-slim` 기반이며 `ffmpeg`을 설치한다. (이전 `node:20-alpine` 은 musl 환경이라 `better-sqlite3` prebuilt 가 없어 node-gyp/python 빌드 의존성이 필요했고, `@discordjs/voice` 의 node>=22 요구도 충족하지 못해 변경했다.)
|
||||
|
||||
## 동작 흐름 요약
|
||||
|
||||
|
||||
Reference in New Issue
Block a user