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

This commit is contained in:
Yassine Doghri 2021-05-21 11:07:42 +00:00
parent cfd29d84e6
commit a162d6d08f
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
3 changed files with 24942 additions and 1192 deletions

View File

@ -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

View File

@ -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 && \

26118
package-lock.json generated

File diff suppressed because it is too large Load Diff