Skip to content

Commit 21c48c2

Browse files
committed
Fixed CI
1 parent 8b9da99 commit 21c48c2

File tree

4 files changed

+36
-24
lines changed

4 files changed

+36
-24
lines changed

php/Dockerfile-node12

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ibexa_php:latest
22

33
# Install Node.js and Yarn
4-
RUN apt-get update -q -y \
5-
&& apt-get install -q -y --no-install-recommends gnupg \
6-
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends \
6+
ca-certificates curl gnupg \
7+
\
8+
&& curl -fsSL https://deb.nodesource.com/setup_12.x | bash - \
79
&& apt-get install -y nodejs \
8-
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
9-
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
10-
&& sudo apt-get update && sudo apt-get install yarn \
10+
\
11+
&& corepack enable \
12+
&& corepack prepare yarn@stable --activate \
13+
\
1114
&& rm -rf /var/lib/apt/lists/*

php/Dockerfile-node14

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ibexa_php:latest
22

33
# Install Node.js and Yarn
4-
RUN apt-get update -q -y \
5-
&& apt-get install -q -y --no-install-recommends gnupg \
6-
&& curl -sL https://deb.nodesource.com/setup_14.x | bash - \
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends \
6+
ca-certificates curl gnupg \
7+
\
8+
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
79
&& apt-get install -y nodejs \
8-
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
9-
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
10-
&& sudo apt-get update && sudo apt-get install yarn \
10+
\
11+
&& corepack enable \
12+
&& corepack prepare yarn@stable --activate \
13+
\
1114
&& rm -rf /var/lib/apt/lists/*

php/Dockerfile-node16

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ibexa_php:latest
22

33
# Install Node.js and Yarn
4-
RUN apt-get update -q -y \
5-
&& apt-get install -q -y --no-install-recommends gnupg \
6-
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends \
6+
ca-certificates curl gnupg \
7+
\
8+
&& curl -fsSL https://deb.nodesource.com/setup_16.x | bash - \
79
&& apt-get install -y nodejs \
8-
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
9-
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
10-
&& sudo apt-get update && sudo apt-get install yarn \
10+
\
11+
&& corepack enable \
12+
&& corepack prepare yarn@stable --activate \
13+
\
1114
&& rm -rf /var/lib/apt/lists/*

php/Dockerfile-node18

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM ibexa_php:latest
22

33
# Install Node.js and Yarn
4-
RUN apt-get update -q -y \
5-
&& apt-get install -q -y --no-install-recommends gnupg \
6-
&& curl -sL https://deb.nodesource.com/setup_18.x | bash - \
4+
RUN apt-get update -y \
5+
&& apt-get install -y --no-install-recommends \
6+
ca-certificates curl gnupg \
7+
\
8+
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
79
&& apt-get install -y nodejs \
8-
&& curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
9-
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
10-
&& sudo apt-get update && sudo apt-get install yarn \
10+
\
11+
&& corepack enable \
12+
&& corepack prepare yarn@stable --activate \
13+
\
1114
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)