Pack the website into container

This commit is contained in:
mr-vercetti 2022-11-27 18:08:07 +01:00
parent 171988a9ff
commit e5699b6054
11 changed files with 29 additions and 5 deletions

6
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "themes/d3c3nt"]
path = themes/d3c3nt
url = https://github.com/FIGBERT/d3c3nt
[submodule "website/themes/d3c3nt"]
path = website/themes/d3c3nt
url = git@github.com:mr-vercetti/d3c3nt.git

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM alpine as builder
COPY ./website /home
WORKDIR /home/website
RUN apk add zola --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ && \
zola build
FROM nginx:alpine
COPY --from=builder /home/website/public /usr/share/nginx/html
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf

12
nginx/nginx.conf Normal file
View File

@ -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;
}
}

View File

@ -1,4 +1,4 @@
base_url = "https://mr.vercetti.cc"
base_url = "/"
theme = "d3c3nt"
title = "mr-vercetti"
description = "mr.vercetti.cc - sup homie?"

View File

@ -28,7 +28,7 @@ I intend to write something from time to time about what turns me on, which is:
## By the way, more about me...
I make my living as DevOps Engineer. I love classic/retro/old stuff, but I also
appreciate the new. I spend most of my free time in front of the computer but
that doesn't mean it's "productive". I'm not a fan of productivity above all else.
that doesn't mean it's "productive". I'm not a fan of forced productivity.
Sometimes I just like to sit and install mods for Vice City.
## My job and my own projects

View File

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB