3412595d79
Deploy to Dev / Deploy & Smoke Test (push) Failing after 1m27s
npm_config_build_from_source=true tells prebuild-install to skip the prebuilt glibc binary download and compile against the container's musl libc instead. The previous attempt (npm rebuild --build-from-source) ran after the glibc binary was already installed and didn't override it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
19 lines
390 B
Docker
19 lines
390 B
Docker
FROM node:20-alpine
|
|
|
|
RUN apk add --no-cache python3 make g++
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
# build_from_source tells prebuild-install to compile better-sqlite3 against
|
|
# musl (Alpine) instead of downloading a prebuilt glibc binary
|
|
RUN npm_config_build_from_source=true npm ci --omit=dev
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p data signed-contracts contracts
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["node", "server.js"]
|