73403a0ddb
Deploy to Dev / Deploy & Smoke Test (push) Successful in 1m14s
better-sqlite3's prebuild-install downloads prebuilt glibc binaries for linux-x64, which fail on Alpine's musl libc with 'fcntl64: symbol not found'. npm_config_build_from_source was not being honoured. Switching to a glibc-based image sidesteps the issue entirely; homelab image size is fine. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
271 B
Docker
17 lines
271 B
Docker
FROM node:20-slim
|
|
|
|
RUN apt-get update -qq && apt-get install -y -qq python3 make g++ && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci --omit=dev
|
|
|
|
COPY . .
|
|
|
|
RUN mkdir -p data signed-contracts contracts
|
|
|
|
EXPOSE 3001
|
|
|
|
CMD ["node", "server.js"]
|