sql-snippets / Dockerfile
cfahlgren1's picture
cfahlgren1 HF Staff
move base images to node:22-alpine to fix cve-2026-111497 (node 20 eol brotli rce)
4788b81
Raw History Blame Contribute Delete
324 Bytes
FROM node:22-alpine AS build
WORKDIR /app
COPY . .
RUN npm ci
RUN npm run build
FROM node:22-alpine AS run
WORKDIR /app
COPY --from=build /app/package.json .
COPY --from=build /app/package-lock.json .
COPY --from=build /app/build ./build
RUN npm ci --production
USER node
EXPOSE 3000
CMD ["node", "./build/index.js"]