fix: upgrade to Node 22 — obsidian-headless requires navigator, WebSocket, fetch globals only available in Node 22+
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM node:20-slim
|
FROM node:22-slim
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|||||||
+1
-3
@@ -8,12 +8,10 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Map your local host folder to the container's vault folder
|
# Map your local host folder to the container's vault folder
|
||||||
- ${VAULT_HOST_PATH}:/vault
|
- ${VAULT_HOST_PATH}:/vault
|
||||||
|
|
||||||
# Persist the sync session and config so you don't have to 'ob login' on every restart
|
# Persist the sync session and config so you don't have to 'ob login' on every restart
|
||||||
- ./config:/root/.config/obsidian-headless
|
- ./config:/root/.config/obsidian-headless
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
# Enable the experimental WebSocket global required by obsidian-headless
|
|
||||||
- NODE_OPTIONS=--experimental-websocket
|
|
||||||
|
|||||||
Reference in New Issue
Block a user