Add our own dockerfile.

Running, building, serving, CI, all that.
This commit is contained in:
Jessica Canady 2024-04-20 19:44:01 -04:00
parent be47fe8f1d
commit 878f0fb434
2 changed files with 18 additions and 0 deletions

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM ghcr.io/getzola/zola:v0.17.1 as zola
MAINTAINER Jessica Phoenix Canady <jess@canady.tech>
COPY . /blog
WORKDIR /blog
EXPOSE 1111
ENTRYPOINT ["zola", "serve", "-i", "0.0.0.0"]

8
bin/serve Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
set -e
cd "$(dirname "$0")/.."
docker build --tag jessite .
docker run -d -p 1111:1111 --rm --name jessite jessite