Deploy CI was failing on `npm ci` because the base image lacked `git`, which npm needs to resolve `bchen-sqlite-migrate` from its git URL. Bumping the base from node:22-alpine to node:24-alpine in the same change aligns the image with authd's stack (npm 11.x) — both native deps support Node 24 prebuilds.
20 lines
348 B
Docker
20 lines
348 B
Docker
FROM node:24-alpine
|
|
|
|
# Install native build tools for bcrypt/better-sqlite3 + git for npm git-URL deps
|
|
RUN apk add --no-cache python3 make g++ git
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY tsconfig.json ./
|
|
COPY src ./src
|
|
COPY public ./public
|
|
|
|
RUN mkdir -p /app/data/uploads
|
|
|
|
EXPOSE 3000
|
|
|
|
CMD ["node", "--import", "tsx", "src/index.ts"]
|