From 98c02fe122b940f61b24830d1873d4bfccf4890f Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Fri, 11 Oct 2024 22:51:25 +0900 Subject: [PATCH] Start to phase in docker --- Dockerfile | 9 +++++++++ ikiwiki.setup | 6 +++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d69c6424 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3.20 + +RUN apk add --no-cache ikiwiki +COPY . /build +WORKDIR /build +RUN ikiwiki --refresh --setup ikiwiki.setup + +FROM nginx:alpine +COPY --from=0 /tmp/www /usr/share/nginx/html diff --git a/ikiwiki.setup b/ikiwiki.setup index 23077a8e..83695d2d 100644 --- a/ikiwiki.setup +++ b/ikiwiki.setup @@ -16,9 +16,9 @@ use IkiWiki::Setup::Standard { # users who are banned from the wiki banned_users => [], # where the source of the wiki is located - srcdir => '/home/nico/vcs/www.nico.schottelius.org', + srcdir => '.', # where to build the wiki - destdir => '/tmp/www.nico.schottelius.org', + destdir => '/tmp/www', # base url to the wiki url => 'https://www.nico.schottelius.org/', # url to the ikiwiki.cgi @@ -30,7 +30,7 @@ use IkiWiki::Setup::Standard { # rcs backend to use rcs => '', # plugins to add to the default configuration - add_plugins => [qw{git goodstuff meta sidebar tag rawhtml flattr}], + add_plugins => [qw{goodstuff meta sidebar tag rawhtml flattr}], flattr_userid => "telmich",