Update Dockerfile to install stable node/npm versions

This commit is contained in:
Björn Fromme
2021-10-13 15:54:25 +02:00
parent d51f49f75d
commit ce107a4aa6
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
ARG BASE_IMAGE
FROM $BASE_IMAGE
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests jpegoptim optipng gifsicle
RUN npm i -g n && n stable
RUN npm i -g npm
+2 -2
View File
@@ -34,9 +34,9 @@ jobs:
${{ runner.os }}-
- name: Build assets
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: '14'
- run: npm install
- run: npm run build