Update/fix build pipeline for hugo.
This commit is contained in:
parent
15fbf7d7a0
commit
4967fadbc1
3 changed files with 8 additions and 12 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,8 +1,8 @@
|
|||
FROM jekyll/jekyll as build
|
||||
FROM klakegg/hugo as build
|
||||
|
||||
WORKDIR /srv/jekyll
|
||||
COPY . /srv/jekyll
|
||||
RUN jekyll build --trace && cp -a _site/ /tmp/site
|
||||
WORKDIR /src
|
||||
COPY . /src/
|
||||
RUN hugo
|
||||
|
||||
FROM nginx
|
||||
COPY --from=build /tmp/site /usr/share/nginx/html
|
||||
COPY --from=build /src/public /usr/share/nginx/html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue