Skip to content

Commit 41ae502

Browse files
committed
feat: The Yarn package manager is installed
1 parent 65c1bba commit 41ae502

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Dockerfile.php7

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ RUN curl https://deb.nodesource.com/setup_18.x -o install_node.sh \
4545
&& apt-get clean \
4646
&& rm -rf /var/lib/apt/lists/*
4747

48+
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg \
49+
| gpg --dearmor >> /usr/share/keyrings/yarnkey.gpg \
50+
&& echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list \
51+
&& apt-get update \
52+
&& apt-get install yarn \
53+
&& apt-get autoremove \
54+
&& apt-get clean \
55+
&& rm -rf /var/lib/apt/lists/*
56+
4857
RUN docker-php-ext-install bz2 \
4958
&& install-php-extensions apcu gd gmp intl opcache pdo_mysql pdo_pgsql sockets zip imap mailparse soap \
5059
&& apt-get autoremove \

Dockerfile.php8

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ RUN curl https://deb.nodesource.com/setup_18.x -o install_node.sh \
4545
&& apt-get clean \
4646
&& rm -rf /var/lib/apt/lists/*
4747

48+
RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg \
49+
| gpg --dearmor >> /usr/share/keyrings/yarnkey.gpg \
50+
&& echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list \
51+
&& apt-get update \
52+
&& apt-get install yarn \
53+
&& apt-get autoremove \
54+
&& apt-get clean \
55+
&& rm -rf /var/lib/apt/lists/*
56+
4857
RUN docker-php-ext-install bz2 \
4958
&& install-php-extensions apcu gd gmp intl opcache pdo_mysql pdo_pgsql sockets zip imap mailparse soap \
5059
&& apt-get autoremove \

0 commit comments

Comments
 (0)