Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

build: switch to node:22-slim image for libzim compat

Jake Turnerf090468d2075
diff --git a/.dockerignore b/.dockerignore
index f7007e47..7fdcc44f 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -2,4 +2,7 @@
.env.*
.git
node_modules
-*.log
\ No newline at end of file
+*.log
+admin/storage
+admin/node_modules
+admin/build
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index ade661f1..739d9e4f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
-FROM node:22.16.0-alpine3.22 AS base
+FROM node:22-slim AS base
# Install bash & curl for entrypoint script compatibility, graphicsmagick for pdf2pic, and vips-dev & build-base for sharp
-RUN apk add --no-cache bash curl graphicsmagick vips-dev build-base
+RUN apt-get update && apt-get install -y bash curl graphicsmagick libvips-dev build-essential
# All deps stage
FROM base AS deps