From 517a7e7195330e4782aaa0d2a32e339e0b9a9752 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Wed, 10 Jun 2026 23:11:12 +0200 Subject: [PATCH] Feat: Integriert Node.js und Yarn in Entwicklungs- und Produktionsumgebung --- podman/php-prod/Containerfile | 8 ++++++++ podman/php/Containerfile | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/podman/php-prod/Containerfile b/podman/php-prod/Containerfile index 5813e06..683a508 100644 --- a/podman/php-prod/Containerfile +++ b/podman/php-prod/Containerfile @@ -16,6 +16,7 @@ RUN composer install \ FROM docker.io/library/php:8.4-fpm AS runtime RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ libzip-dev \ libicu-dev \ libsodium-dev \ @@ -29,6 +30,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get purge -y --auto-remove \ && rm -rf /var/lib/apt/lists/* +# Node.js und Yarn +RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \ + && apt-get install -y nodejs \ + && corepack enable yarn \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY podman/php-prod/conf.d/ /usr/local/etc/php/conf.d/ WORKDIR /var/www/html diff --git a/podman/php/Containerfile b/podman/php/Containerfile index 2dd18ef..807dbfb 100644 --- a/podman/php/Containerfile +++ b/podman/php/Containerfile @@ -23,6 +23,13 @@ RUN curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | b && apt-get clean \ && rm -rf /var/lib/apt/lists/* +# Node.js und Yarn +RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \ + && apt-get install -y nodejs \ + && corepack enable yarn \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + COPY --from=docker.io/library/composer:2 /usr/bin/composer /usr/bin/composer COPY podman/php/conf.d/ /usr/local/etc/php/conf.d/