mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2026-03-21 22:32:17 +00:00
Separate non-dev and dev npm dependencies, set up Docker build caches
This commit is contained in:
parent
92af48a513
commit
aed4b0b75e
3 changed files with 206 additions and 744 deletions
|
|
@ -7,7 +7,8 @@ ARG SITE
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY package.json package-lock.json /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/
|
COPY styles /build/styles/
|
||||||
RUN npm run build:styles
|
RUN npm run build:styles
|
||||||
|
|
@ -28,7 +29,8 @@ RUN SITE=${SITE} npm run build
|
||||||
FROM docker.io/python:3.13-alpine
|
FROM docker.io/python:3.13-alpine
|
||||||
ARG SITE
|
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
|
python -m pip install legacy-cgi itsdangerous requests
|
||||||
|
|
||||||
COPY --from=build /build/dist /www/
|
COPY --from=build /build/dist /www/
|
||||||
|
|
|
||||||
938
package-lock.json
generated
938
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -10,7 +10,7 @@
|
||||||
"dev:styles": "sass --watch styles/:dist/assets/css/"
|
"dev:styles": "sass --watch styles/:dist/assets/css/"
|
||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"dependencies": {
|
||||||
"@11ty/eleventy": "^2.0.1",
|
"@11ty/eleventy": "^2.0.1",
|
||||||
"@11ty/eleventy-img": "^3.1.0",
|
"@11ty/eleventy-img": "^3.1.0",
|
||||||
"@11ty/eleventy-navigation": "^0.3.5",
|
"@11ty/eleventy-navigation": "^0.3.5",
|
||||||
|
|
@ -21,7 +21,9 @@
|
||||||
"markdown-it-anchor": "^8.6.7",
|
"markdown-it-anchor": "^8.6.7",
|
||||||
"markdown-it-attrs": "^4.1.6",
|
"markdown-it-attrs": "^4.1.6",
|
||||||
"node-gyp-build": "^4.6.0",
|
"node-gyp-build": "^4.6.0",
|
||||||
"prettier": "^2.8.8",
|
|
||||||
"sass": "^1.62.1"
|
"sass": "^1.62.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"prettier": "^2.8.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue