17 lines
290 B
Docker
17 lines
290 B
Docker
FROM hugomods/hugo:exts as builder
|
|
|
|
ARG HUGO_BASEURL=https://pauljako.de
|
|
|
|
ENV HUGO_BASEURL=${HUGO_BASEURL}
|
|
|
|
|
|
COPY . /src
|
|
|
|
RUN hugo --minify --enableGitInfo
|
|
|
|
# Copy the generated files to keep the image as small as possible.
|
|
|
|
FROM hugomods/hugo:nginx
|
|
|
|
|
|
COPY --from=builder /src/public /site
|