Update Dockerfile to install stable node/npm versions
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
ARG BASE_IMAGE
|
ARG BASE_IMAGE
|
||||||
FROM $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
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ jobs:
|
|||||||
${{ runner.os }}-
|
${{ runner.os }}-
|
||||||
|
|
||||||
- name: Build assets
|
- name: Build assets
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 12.x
|
node-version: '14'
|
||||||
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user