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:
- php 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 -
- apt-get update && apt-get install -y nodejs
- npm install --global npm
# Install all php dependencies
- php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs
......
......@@ -15,14 +15,13 @@ WORKDIR /castopod-host
# Install composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Install npm
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
# Install latest npm
RUN apt-get update && \
apt-get install -y nodejs
# update npm to latest version
RUN npm install --global npm
apt-get install -y --no-install-recommends gnupg && \
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt-get update && \
apt-get install -y --no-install-recommends nodejs && \
npm install --global npm
# Install git + vim
RUN apt-get update && \
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment