Add dockerfile to build webserver
This commit is contained in:
parent
424c547ee7
commit
cadd899309
1 changed files with 11 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
FROM ghcr.io/getzola/zola:v0.22.1 AS zola
|
||||
|
||||
COPY . /site
|
||||
WORKDIR /site
|
||||
RUN ["zola", "build"]
|
||||
|
||||
FROM joseluisq/static-web-server AS sws
|
||||
WORKDIR /
|
||||
COPY --from=zola /site/public /public
|
||||
|
||||
CMD ["--page404", "/public/404.html"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue