Initial commit of new flow

This commit is contained in:
Smaug123
2023-09-10 21:21:51 +01:00
commit a1072f203d
28 changed files with 701 additions and 0 deletions

19
docker/html/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM debian:stable-20211011-slim AS builder
ADD https://github.com/validator/validator/releases/download/20.6.30/vnu.linux.zip .
ADD https://github.com/validator/validator/releases/download/20.6.30/vnu.linux.zip.sha1 .
COPY "build.sh" "/build.sh"
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install --no-install-recommends -y \
unzip=6.0-26 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& echo "$(cat vnu.linux.zip.sha1) vnu.linux.zip" | sha1sum -c - \
&& unzip ./vnu.linux.zip \
&& rm ./vnu.linux.zip* \
&& apt-get purge -y --auto-remove unzip \
&& chmod +x /build.sh \
&& addgroup --gid 1000 hugo && adduser --gid 1000 hugo
USER hugo

3
docker/html/build.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
find result/ -type f -name '*.html' -print0 | xargs -0 -n1 /nix/store/p7adf8zk6akdbjr60vb98fajxp5aaa7i-html-tidy-5.8.0/bin/tidy 2>/dev/null