Files
lisilou-portfolio/api/Dockerfile
T
jhodgkin f7f9b14771
Deploy to Dev / Deploy & Smoke Test (push) Failing after 1m29s
Fix better-sqlite3 glibc/musl mismatch on Alpine (issue #6 followup)
prebuild-install downloads a prebuilt glibc .node binary for linux-x64 which
fails on Alpine (musl) with 'fcntl64: symbol not found'. Adding an explicit
npm rebuild --build-from-source step forces compilation against musl libc
inside the container, which is correct.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-08 09:34:34 -06:00

17 lines
266 B
Docker

FROM node:20-alpine
RUN apk add --no-cache python3 make g++
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev && npm rebuild better-sqlite3 --build-from-source
COPY . .
RUN mkdir -p data signed-contracts contracts
EXPOSE 3001
CMD ["node", "server.js"]