diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a20694..21ea132 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index b80e27e..659b654 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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