From 48dc9053f6deb45c1f325348e1da7ba1b740d996 Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Fri, 1 Dec 2023 22:25:37 +0100 Subject: [PATCH] docker basic instructions --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index e20ec38..9f5b421 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,21 @@ hugo ``` The complete website will be placed in the `public` directory. + +## Building the container image + +This website can be used as a container image; to do so in docker: + +```sh +docker build -t libreschool-website . +``` + +Then you can run the image: + +```sh +docker run -d -p 6080:80 libreschool-website +``` + +With the above command, the website will be reachable via HTTP to port 6080. + +It's also possible do bind mount the container's `/logs` directory, to expose nginx logs.