n8n/.devcontainer/Dockerfile
Declan Carroll 59f054ad38
fix: Devcontainer build failures from hardened base image (no-changelog) (#26477)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 14:37:23 +00:00

15 lines
471 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
USER node
RUN mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store --global