diff --git a/Dockerfile b/Dockerfile index aa684f1..57f3f3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,8 +27,10 @@ RUN apk add --no-cache dumb-init # Copy server package files COPY package*.json ./ -# Install production dependencies only -RUN npm ci --only=production +# Install build tools for native modules (better-sqlite3), then install deps +RUN apk add --no-cache python3 make g++ && \ + npm ci --omit=dev && \ + apk del python3 make g++ # Copy server code COPY server ./server