Node corepack fixes, debuid now depends from node

This commit is contained in:
Juan Ferrer 2025-02-11 08:24:50 +01:00
parent 24ab6cc7ad
commit 18effab00c
2 changed files with 6 additions and 17 deletions

View File

@ -1,4 +1,4 @@
FROM debian:bookworm-slim
FROM registry.verdnatura.es/verdnatura/node:20.18.3-vn1
ARG DEBIAN_FRONTEND=noninteractive
@ -6,20 +6,8 @@ RUN apt-get update \
&& apt-get install -y \
build-essential \
debhelper \
devscripts
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
ca-certificates \
gnupg2 \
libfontconfig \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y --no-install-recommends \
nodejs \
&& npm install -g npm
RUN rm -rf /var/lib/apt/lists/*
devscripts \
&& rm -rf /var/lib/apt/lists/*
RUN groupadd -g 1000 jenkins \
&& useradd -d /home/jenkins -u 1000 -g 1000 -m -s /bin/bash jenkins \

View File

@ -1,4 +1,4 @@
FROM debian:12.6-slim
FROM registry.verdnatura.es/debian:12.9-slim
ARG DEBIAN_FRONTEND=noninteractive
@ -9,5 +9,6 @@ RUN apt-get update \
gnupg2 \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g npm \
&& npm install -g corepack@0.31.0 \
&& corepack enable pnpm \
&& rm -rf /var/lib/apt/lists/*