Add Containerfile
This commit is contained in:
parent
93c027162d
commit
257583c26e
1 changed files with 9 additions and 0 deletions
9
Containerfile
Normal file
9
Containerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM ghcr.io/getzola/zola:v0.17.2 AS build
|
||||
WORKDIR /site
|
||||
COPY . .
|
||||
RUN ["zola", "build"]
|
||||
|
||||
FROM docker.io/library/nginx:alpine
|
||||
EXPOSE 80
|
||||
COPY ./nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /site/public/ /usr/share/nginx/html/
|
Loading…
Reference in a new issue