mirror of
https://github.com/mr-vercetti/mr.vercetti.cc.git
synced 2025-01-18 16:55:34 +01:00
Pack the website into container
This commit is contained in:
parent
171988a9ff
commit
e5699b6054
6
.gitmodules
vendored
6
.gitmodules
vendored
@ -1,3 +1,3 @@
|
|||||||
[submodule "themes/d3c3nt"]
|
[submodule "website/themes/d3c3nt"]
|
||||||
path = themes/d3c3nt
|
path = website/themes/d3c3nt
|
||||||
url = https://github.com/FIGBERT/d3c3nt
|
url = git@github.com:mr-vercetti/d3c3nt.git
|
||||||
|
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
12
nginx/nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
base_url = "https://mr.vercetti.cc"
|
base_url = "/"
|
||||||
theme = "d3c3nt"
|
theme = "d3c3nt"
|
||||||
title = "mr-vercetti"
|
title = "mr-vercetti"
|
||||||
description = "mr.vercetti.cc - sup homie?"
|
description = "mr.vercetti.cc - sup homie?"
|
@ -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...
|
## By the way, more about me...
|
||||||
I make my living as DevOps Engineer. I love classic/retro/old stuff, but I also
|
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
|
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.
|
Sometimes I just like to sit and install mods for Vice City.
|
||||||
|
|
||||||
## My job and my own projects
|
## My job and my own projects
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue
Block a user