Skip to content

Commit 65006e1

Browse files
Copilotmglaman
andauthored
Remove Yarn repository to prevent expired GPG key failures (#7)
* Initial plan * Add preventive fix for Yarn GPG key expiration issue Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> * Address code review feedback - simplify Yarn repository cleanup Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> * Optimize Dockerfile by combining Yarn cleanup with Node.js installation Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> * Clarify comments about Yarn GPG key fix Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mglaman <3698644+mglaman@users.noreply.github.com>
1 parent 57124c2 commit 65006e1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
FROM php:8.3-apache AS base
33

44
# Install Node.js 24 (includes npm)
5+
# Clean up Yarn repository to prevent GPG key expiration errors
6+
# Yarn's GPG key (23E7166788B63E1E) has expired, causing apt-get failures if repository is present
57
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - && \
6-
apt-get install -y --no-install-recommends nodejs
8+
apt-get install -y --no-install-recommends nodejs && \
9+
rm -f /etc/apt/sources.list.d/yarn.list /usr/share/keyrings/yarnkey.gpg
710

811
RUN apt-get install -y --no-install-recommends \
912
libsodium-dev \

0 commit comments

Comments
 (0)