docker basic instructions

This commit is contained in:
Paolo Asperti 2023-12-01 22:25:37 +01:00
parent 042c206885
commit 48dc9053f6
Signed by: paspo
GPG Key ID: 06D46905D19D5182

View File

@ -31,3 +31,21 @@ hugo
``` ```
The complete website will be placed in the `public` directory. 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.