feat(Dockerfile): added
This commit is contained in:
parent
c1da6bb79c
commit
08366ec055
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue