Separate non-dev and dev npm dependencies, set up Docker build caches

This commit is contained in:
Yannik Rödel 2025-06-15 16:59:50 +02:00 committed by Yannik Rödel
parent e18a3ebf15
commit 1f90436747
3 changed files with 206 additions and 744 deletions

View file

@ -7,7 +7,8 @@ ARG SITE
WORKDIR /build
COPY package.json package-lock.json /build/
RUN npm ci
RUN --mount=type=cache,target=/root/.npm \
npm clean-install --omit=dev
COPY styles /build/styles/
RUN npm run build:styles
@ -28,7 +29,8 @@ RUN SITE=${SITE} npm run build
FROM docker.io/python:3.13-alpine
ARG SITE
RUN apk add --no-cache lighttpd && \
RUN --mount=type=cache,target=/root/.cache/pip \
apk add --no-cache lighttpd && \
python -m pip install legacy-cgi itsdangerous requests
COPY --from=build /build/dist /www/

938
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -10,7 +10,7 @@
"dev:styles": "sass --watch styles/:dist/assets/css/"
},
"license": "MIT",
"devDependencies": {
"dependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-img": "^3.1.0",
"@11ty/eleventy-navigation": "^0.3.5",
@ -21,7 +21,9 @@
"markdown-it-anchor": "^8.6.7",
"markdown-it-attrs": "^4.1.6",
"node-gyp-build": "^4.6.0",
"prettier": "^2.8.8",
"sass": "^1.62.1"
},
"devDependencies": {
"prettier": "^2.8.8"
}
}