23 lines
542 B
Docker
23 lines
542 B
Docker
###############
|
|
# Build Stage #
|
|
###############
|
|
FROM hugomods/hugo:exts as builder
|
|
# Base URL
|
|
# ARG HUGO_BASEURL=
|
|
# ENV HUGO_BASEURL=${HUGO_BASEURL}
|
|
# Build site
|
|
COPY . /src
|
|
RUN hugo --minify --gc
|
|
# Set the fallback 404 page if defaultContentLanguageInSubdir is enabled, please replace the `en` with your default language code.
|
|
# RUN cp ./public/en/404.html ./public/404.html
|
|
|
|
###############
|
|
# Final Stage #
|
|
###############
|
|
FROM hugomods/hugo:nginx
|
|
LABEL "Matthew McKinnon"="<support@comprofix.com>"
|
|
|
|
COPY --from=builder /src/public /site
|
|
|
|
|