node for jenkins

This commit is contained in:
Artur 2025-01-07 12:28:22 +01:00
parent 49045e8903
commit 51a9a7c7b7
1 changed files with 6 additions and 1 deletions

View File

@ -2,11 +2,16 @@ FROM jenkins/jenkins:lts-jdk17
USER root
# Instalacja Docker, Maven i innych narzędzi w jednym kroku
# Instalacja Docker, Maven, Node.js i innych narzędzi w jednym kroku
RUN apt-get update && apt-get -qy full-upgrade && \
apt-get install -qy curl maven && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -qy nodejs && \
curl -fsSL https://get.docker.com/ | sh && \
git config --global --add safe.directory '*'
# Sprawdzenie zainstalowanych wersji
RUN node -v && npm -v && docker -v && mvn -v
# Domyślnie przełącz na użytkownika Jenkins
USER jenkins