Skip to content

Commit

Permalink
php 8.1 update nodejs install script
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppemorelli committed Dec 21, 2023
1 parent 8893780 commit b52cf26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion php-8.1-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ RUN wget https://get.symfony.com/cli/installer -O - | bash && \
mv /root/.symfony5/bin/symfony /usr/local/bin/symfony && \
chmod 777 /usr/local/bin/symfony

RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get install -y nodejs
# TODO: add node version with parameter
RUN NODE_MAJOR=18 && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
Expand Down

0 comments on commit b52cf26

Please sign in to comment.