Skip to content
Snippets Groups Projects
Unverified Commit a162d6d0 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

build: update npm to v7 in Dockerfile and .gitlabci.yml

parent cfd29d84
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,10 @@ before_script: ...@@ -26,9 +26,10 @@ before_script:
- php composer-setup.php - php composer-setup.php
- php -r "unlink('composer-setup.php');" - php -r "unlink('composer-setup.php');"
# Install NodeJS for NPM # Install latest npm
- curl -sL https://deb.nodesource.com/setup_lts.x | bash - - curl -sL https://deb.nodesource.com/setup_lts.x | bash -
- apt-get update && apt-get install -y nodejs - apt-get update && apt-get install -y nodejs
- npm install --global npm
# Install all php dependencies # Install all php dependencies
- php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs - php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
......
...@@ -15,14 +15,13 @@ WORKDIR /castopod-host ...@@ -15,14 +15,13 @@ WORKDIR /castopod-host
# Install composer # Install composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Install npm # Install latest npm
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y nodejs apt-get install -y --no-install-recommends gnupg && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
# update npm to latest version apt-get update && \
RUN npm install --global npm apt-get install -y --no-install-recommends nodejs && \
npm install --global npm
# Install git + vim # Install git + vim
RUN apt-get update && \ RUN apt-get update && \
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment