Feat: Integriert Node.js und Yarn in Entwicklungs- und Produktionsumgebung

This commit is contained in:
2026-06-10 23:11:12 +02:00
parent b4773a311e
commit 517a7e7195
2 changed files with 15 additions and 0 deletions
+8
View File
@@ -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
+7
View File
@@ -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/