added video support

This commit is contained in:
2026-06-22 23:36:20 +02:00
parent 2d93109831
commit 544d6c866c
7 changed files with 178 additions and 5 deletions
+17 -4
View File
@@ -1,19 +1,32 @@
FROM hugomods/hugo:exts AS builder
WORKDIR /src
COPY archetypes/ archetypes/
COPY assets/ assets/
COPY content/ content/
COPY themes/ themes/
COPY layouts/ layouts/
COPY static/ static/
COPY themes/ themes/
COPY assets/ assets/
COPY content/ content/
COPY hugo.toml .
RUN hugo --gc --minify
FROM alpine:3.20 AS video-posters
RUN apk add --no-cache python3 ffmpeg
WORKDIR /src
COPY --from=builder /src/public /src/public
COPY scripts/add-video-posters.py /add-video-posters.py
RUN python3 /add-video-posters.py /src/public
FROM nginx:alpine
RUN apk add --no-cache openssl
COPY --from=builder /src/public /usr/share/nginx/html
COPY --from=video-posters /src/public /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY docker-entrypoint.sh /docker-entrypoint.sh