f7f9b14771
Deploy to Dev / Deploy & Smoke Test (push) Failing after 1m29s
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>
17 lines
266 B
Docker
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"]
|