generated from Websites/symfony-template
Feat: Integriert Node.js und Yarn in Entwicklungs- und Produktionsumgebung
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user