n8n/docker/images/engine/Dockerfile
Declan Carroll 4a613a8758
build: Revert n8n image to alpine 3.22 to restore graphicsmagick GPL pin (#30673)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 08:15:34 +00:00

21 lines
461 B
Docker

ARG NODE_VERSION=24.15.0
FROM node:${NODE_VERSION}-alpine3.22
ENV NODE_ENV=production
RUN apk add --no-cache tini
WORKDIR /app
# `compiled/` is produced by `pnpm build:docker`. It's a `pnpm deploy --prod`
# output containing package.json, dist/, and a node_modules with only
# production dependencies — no devDeps, no workspace bloat.
COPY --chown=node:node ./compiled /app
USER node
EXPOSE 3000
ENTRYPOINT ["tini", "--"]
CMD ["node", "dist/serve.js"]