Files
lisilou-portfolio/api/Dockerfile
T
jhodgkin 73403a0ddb
Deploy to Dev / Deploy & Smoke Test (push) Successful in 1m14s
Switch API base image from Alpine to node:20-slim (Debian)
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>
2026-07-08 10:41:24 -06:00

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"]