From 0e722f588ceab2412c48b9944a0dbae7ce2d0165 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 10 Sep 2025 21:13:04 -0500 Subject: [PATCH] Fix architecture issues in Dockerfile --- docker/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index b796549c..f76663ba 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -27,6 +27,14 @@ WORKDIR /app COPY . . +# Set environment variables for native module compilation +ENV npm_config_target_platform=linux +ENV npm_config_target_arch=x64 +ENV npm_config_target_libc=glibc + +# Rebuild native modules for the target platform +RUN npm rebuild better-sqlite3 --force + RUN npm run dev:backend # Stage 4: Production dependencies