Use slim container for node build

This commit is contained in:
Jake Howard 2022-08-27 15:20:13 +01:00
parent 6c19835cac
commit 0da37bb064
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 3 additions and 5 deletions

View File

@ -4,14 +4,12 @@ stages:
- deploy
static:
image: node:alpine
image: node:16-slim
stage: build
cache:
key: npm-$CI_COMMIT_REF_SLUG
paths:
- "$CI_PROJECT_DIR/.npm-cache"
before_script:
- apk add --no-cache bash
script:
- npm ci --cache .npm-cache --prefer-offline
- npm run build
@ -125,7 +123,7 @@ djhtml:
- git ls-files '*.html' | xargs djhtml --check --tabwidth 2
npm_lint:
image: node:alpine
image: node:16-slim
stage: test
dependencies:
- static

View File

@ -1,4 +1,4 @@
FROM node:16 as frontend
FROM node:16-slim as frontend
COPY package.json package-lock.json ./
RUN npm ci --no-audit --progress=false --omit=dev