chore: update Docker configuration to include pnpm workspace and refine dependency management

This commit is contained in:
Anish Sarkar 2026-05-11 15:31:24 +05:30
parent 3b345e7091
commit 83e40c5aea
4 changed files with 13 additions and 14 deletions

View file

@ -4,7 +4,7 @@
# Database, Redis, and internal service wiring are handled automatically. # Database, Redis, and internal service wiring are handled automatically.
# ============================================================================== # ==============================================================================
# SurfSense version (use "latest", a clean version like "0.0.14", or a specific build like "0.0.14.1") # SurfSense version (use "latest" or a specific version like "0.0.14")
SURFSENSE_VERSION=latest SURFSENSE_VERSION=latest
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------

View file

@ -12,7 +12,7 @@ WORKDIR /app
RUN corepack enable pnpm RUN corepack enable pnpm
# Copy package files # Copy package files
COPY package.json pnpm-lock.yaml* .npmrc* ./ COPY package.json pnpm-lock.yaml* pnpm-workspace.yaml* .npmrc* ./
# First copy the config file and content to avoid fumadocs-mdx postinstall error # First copy the config file and content to avoid fumadocs-mdx postinstall error
COPY source.config.ts ./ COPY source.config.ts ./

View file

@ -176,17 +176,5 @@
"tsx": "^4.20.6", "tsx": "^4.20.6",
"typescript": "^5.8.3", "typescript": "^5.8.3",
"vite": "^7.3.1" "vite": "^7.3.1"
},
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",
"@rocicorp/zero-sqlite3",
"@swc/core",
"core-js",
"esbuild",
"protobufjs",
"sharp",
"unrs-resolver"
]
} }
} }

View file

@ -0,0 +1,11 @@
packages:
- "."
onlyBuiltDependencies:
- "@parcel/watcher"
- "@rocicorp/zero-sqlite3"
- "@swc/core"
- core-js
- esbuild
- protobufjs
- sharp
- unrs-resolver