prepare initial release (#2)
* force dark mode * add node based build * add markdown lint * fix markdown lint issues * add custom caddy file * fix page lookup for error page * disable pagination * adjus trivy behavior * exclude mardkownlint from docker build * fix trivy step and add umami tracking code * set data-domain to exclude forks adding stats
This commit is contained in:
10
Dockerfile
10
Dockerfile
@ -1,13 +1,15 @@
|
||||
FROM klakegg/hugo:0.91.1-ext-alpine-ci as builder
|
||||
FROM node:lts-buster-slim as builder
|
||||
COPY . /src
|
||||
#RUN ls -la
|
||||
WORKDIR /src
|
||||
#RUN ls -a
|
||||
RUN hugo --gc --minify
|
||||
RUN npm install \
|
||||
&& npm run build
|
||||
|
||||
FROM caddy:2.4.5-alpine
|
||||
FROM caddy:2.4.6-alpine
|
||||
LABEL maintainer="marco.blessing@googlemail.com"
|
||||
COPY --from=builder /src/Caddyfile /etc/caddy/Caddyfile
|
||||
COPY --from=builder src/public /usr/share/caddy/
|
||||
HEALTHCHECK --interval=15s --timeout=3s \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1
|
||||
#RUN ls -la /usr/share/caddy/
|
||||
|
Reference in New Issue
Block a user