mirror of
https://code.castopod.org/adaures/castopod
synced 2025-06-06 18:31:05 +00:00
build: update npm to v7 in Dockerfile and .gitlabci.yml
This commit is contained in:
parent
cfd29d84e6
commit
a162d6d08f
@ -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
|
||||||
|
13
Dockerfile
13
Dockerfile
@ -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 && \
|
||||||
|
26074
package-lock.json
generated
26074
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user