From 7cea36879c2b9ce98fea95d6319c68f84365996a Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Sun, 17 May 2026 10:09:33 -0400 Subject: [PATCH] Add a Dockerfile which builds a site-generator app This builds the container with the needed Perl modules, templates, and a default configuration file. --- Dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6921f14 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM perl:stable + +RUN cpan cpanm Config::Std \ + && cpanm Template \ + && cpanm Template::Plugin::DBI \ + && cpanm Template::Plugin::HTML::Strip \ + && cpanm DBD::SQLite \ + && cpanm Tie::DBI \ + && cpanm Date::Calc \ + && cpanm Text::CSV_XS \ + && cpanm HTML::Entities \ + && mkdir -p /usr/src/app + +WORKDIR /usr/src/app + +ADD site-generator /usr/src/app/site-generator +ADD site.cfg /usr/src/app/site.cfg +ADD templates /usr/src/app/templates +ADD LICENSE /usr/src/app/LICENSE + +# Tell Perl where to find the local modules +ENV PERL5LIB=/usr/local/lib/perl5/site_perl + +ENTRYPOINT ["/usr/src/app/site-generator"]