3 Commits

Author SHA1 Message Date
e1be81a4ad Fix Docker build instruction example 2026-05-19 13:57:26 -04:00
fd577942e6 Update Docker build instructions 2026-05-17 19:31:49 -04:00
3cc4a6b5d3 Fix cpanm call in run layer 2026-05-17 12:01:40 -04:00
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
FROM perl:stable FROM perl:stable
RUN cpan cpanm Config::Std \ RUN cpanm Config::Std \
&& cpanm Template \ && cpanm Template \
&& cpanm Template::Plugin::DBI \ && cpanm Template::Plugin::DBI \
&& cpanm Template::Plugin::HTML::Strip \ && cpanm Template::Plugin::HTML::Strip \

View File

@@ -80,12 +80,14 @@ in the directory from which the site-generator is run. There are two ways to mak
```-v <path to db directory>/hpr.db:/usr/src/app/hpr.db``` ```-v <path to db directory>/hpr.db:/usr/src/app/hpr.db```
Build the image by running the following command from the hpr_generator directory: Build the image by running the following command from the hpr_generator directory:
```docker run -t hpr/site-generator .``` ```docker build -t hpr/site-generator .```
The first build will take a while. It must pull down the base container, perl-latest, and then pull down and build the The first build will take a while. It must pull down the base container, perl-latest, and then pull down and build the
various Perl modules from CPAN. After the initial build, if you have modified your site.cfg file, templates dir, or the various Perl modules from CPAN. After the initial build, if you have modified your site.cfg file, templates dir, or the
site-generator program itself, builds will be very quick. site-generator program itself, builds will be very quick.
If the build fails, it is often from a CPAN module failing to download and install. Try running the Docker build command again.
## Running the container ## Running the container
When runing the Docker image, your local output directory (typically public_html) must be mounted into the container using When runing the Docker image, your local output directory (typically public_html) must be mounted into the container using