Fixed frankenphp docker build

This commit is contained in:
Jan Böhmer 2026-01-25 20:15:29 +01:00
parent c476c98d56
commit b91cd44926

View file

@ -13,32 +13,13 @@ RUN apt-get update && apt-get -y install \
zip \ zip \
&& apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*; && apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*;
RUN set -eux; \ RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
# Prepare keyrings directory echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
mkdir -p /etc/apt/keyrings; \ curl -sL https://deb.nodesource.com/setup_22.x | bash - && \
\ apt-get update && apt-get install -y \
# Import Yarn GPG key nodejs \
curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg \ yarn \
| tee /etc/apt/keyrings/yarn.gpg >/dev/null; \ && apt-get -y autoremove && apt-get clean autoclean && rm -rf /var/lib/apt/lists/*
chmod 644 /etc/apt/keyrings/yarn.gpg; \
\
# Add Yarn repo with signed-by
echo "deb [signed-by=/etc/apt/keyrings/yarn.gpg] https://dl.yarnpkg.com/debian stable main" \
| tee /etc/apt/sources.list.d/yarn.list; \
\
# Run NodeSource setup script (unchanged)
curl -sL https://deb.nodesource.com/setup_22.x | bash -; \
\
# Install Node.js + Yarn
apt-get update; \
apt-get install -y --no-install-recommends \
nodejs \
yarn; \
\
# Cleanup
apt-get -y autoremove; \
apt-get clean autoclean; \
rm -rf /var/lib/apt/lists/*
# Install PHP # Install PHP