mirror of
https://github.com/Smaug123/static-site-pipeline
synced 2025-10-08 17:38:39 +00:00
Initial commit of new flow
This commit is contained in:
19
docker/html/Dockerfile
Normal file
19
docker/html/Dockerfile
Normal 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
3
docker/html/build.sh
Executable 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
|
Reference in New Issue
Block a user