mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 07:37:20 +00:00
fix: Devcontainer build failures from hardened base image (no-changelog) (#26477)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bcd18a6bfe
commit
59f054ad38
1 changed files with 9 additions and 3 deletions
|
|
@ -1,9 +1,15 @@
|
|||
FROM n8nio/base:24
|
||||
ARG NODE_VERSION=24
|
||||
|
||||
RUN apk add --no-cache --update openssh sudo shadow bash
|
||||
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 npm install -g pnpm
|
||||
RUN corepack enable
|
||||
|
||||
USER node
|
||||
RUN mkdir -p ~/.pnpm-store && pnpm config set store-dir ~/.pnpm-store --global
|
||||
|
|
|
|||
Loading…
Reference in a new issue