@cybermem/dashboard 0.9.8 → 0.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/Dockerfile +4 -3
  2. package/package.json +2 -1
package/Dockerfile CHANGED
@@ -26,11 +26,11 @@ RUN --mount=type=cache,target=/root/.pnpm-store \
26
26
  --mount=type=cache,target=/app/.next/cache \
27
27
  pnpm build
28
28
 
29
- # Native stage for sqlite3 bindings
29
+ # Native stage for sqlite3 bindings and wrapper
30
30
  FROM node:20-alpine AS native-builder
31
31
  RUN apk add --no-cache python3 make g++
32
32
  WORKDIR /native
33
- RUN npm init -y && npm install sqlite3@5.1.7
33
+ RUN npm init -y && npm install sqlite3@5.1.7 sqlite@5.1.1
34
34
 
35
35
  # Production stage
36
36
  FROM node:20-alpine AS production
@@ -45,9 +45,10 @@ COPY --from=builder /app/public ./public
45
45
  COPY --from=builder /app/.next/standalone ./
46
46
  COPY --from=builder /app/.next/static ./.next/static
47
47
 
48
- # Copy compiled native modules (sqlite3 specifically)
48
+ # Copy compiled native modules and wrapper (sqlite3 and sqlite)
49
49
  # standalone contains its own node_modules, we add ours there
50
50
  COPY --from=native-builder /native/node_modules/sqlite3 ./node_modules/sqlite3
51
+ COPY --from=native-builder /native/node_modules/sqlite ./node_modules/sqlite
51
52
 
52
53
  # Expose port
53
54
  EXPOSE 3000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cybermem/dashboard",
3
- "version": "0.9.8",
3
+ "version": "0.9.12",
4
4
  "description": "CyberMem Monitoring Dashboard",
5
5
  "homepage": "https://cybermem.dev",
6
6
  "repository": {
@@ -80,6 +80,7 @@
80
80
  "recharts": "2.15.4",
81
81
  "recharts-scale": "^0.4.5",
82
82
  "sonner": "^1.7.4",
83
+ "sqlite": "^5.1.1",
83
84
  "sqlite3": "5.1.7",
84
85
  "ssh2": "^1.17.0",
85
86
  "tailwind-merge": "^3.3.1",