d3c3nt

[DORMANT] a fairly decent theme for the zola static site engine
git clone git://git.figbert.com/d3c3nt.git
Log | Files | Refs | README | LICENSE

commit 89e027fecd199dd384d0794db9475209a391fb90
parent 6649263ab3d1b3492e234eb21e8dbc1d5f215966
Author: FIGBERT <figbert@figbert.com>
Date:   Thu, 10 Feb 2022 22:25:47 -0800

Add Dockerfile and nginx configuration

Diffstat:
ADockerfile | 12++++++++++++
Anginx.conf | 12++++++++++++
2 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine as builder + +WORKDIR /home/site +COPY . . + +RUN apk add zola --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ + && zola build + +FROM nginx:alpine + +COPY --from=builder /home/site/public /usr/share/nginx/html +COPY ./nginx.conf /etc/nginx/nginx.conf diff --git a/nginx.conf b/nginx.conf @@ -0,0 +1,12 @@ +events { } +http { + include /etc/nginx/mime.types; + server_tokens off; + server { + listen 80; + listen [::]:80; + root /usr/share/nginx/html; + error_page 404 /404.html; + default_type application/octet-stream; + } +}