fix: add Python setuptools and build tools for better-sqlite3 compilation

- Add python3, py3-setuptools, make, g++ to Alpine base image
- Required for better-sqlite3 native module compilation in Docker build
- Fixes 'ModuleNotFoundError: No module named distutils' error
This commit is contained in:
Thomas Hallock 2025-10-06 06:46:04 -05:00
parent aa1ad315ef
commit a216a3d343
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,9 @@
# Multi-stage build for Soroban Abacus Flashcards
FROM node:18-alpine AS base
# Install Python and build tools for better-sqlite3
RUN apk add --no-cache python3 py3-setuptools make g++
# Install pnpm and turbo
RUN npm install -g pnpm@8.0.0 turbo@1.10.0