mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-04 18:49:20 +02:00
Some checks are pending
Build: Benchmark Image / build (push) Waiting to run
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (22.22.3) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.15.0) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
Util: Sync API Docs / sync-public-api (push) Waiting to run
Co-authored-by: n8n-cat-bot[bot] <n8n-cat-bot[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
19 lines
556 B
Docker
19 lines
556 B
Docker
ARG NODE_VERSION=24
|
|
|
|
FROM node:${NODE_VERSION}-alpine
|
|
|
|
ARG NODE_VERSION
|
|
|
|
RUN apk add --no-cache \
|
|
openssh sudo shadow bash libc-utils \
|
|
git openssl graphicsmagick tini tzdata ca-certificates libc6-compat
|
|
RUN echo node ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/node && chmod 0440 /etc/sudoers.d/node
|
|
RUN mkdir /workspaces && chown node:node /workspaces
|
|
RUN corepack enable
|
|
|
|
ENV PNPM_HOME=/home/node/.local/share/pnpm
|
|
ENV PATH=$PNPM_HOME/bin:$PATH
|
|
|
|
USER node
|
|
RUN mkdir -p $PNPM_HOME ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store --global
|