added video support
This commit is contained in:
+17
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user