Update Docker config for Ubuntu 22.04

This commit is contained in:
Alex Cabal 2023-12-09 11:14:40 -06:00
parent bb07a19147
commit fa312ea089
3 changed files with 26 additions and 13 deletions

View file

@ -57,16 +57,16 @@ If everything went well, `https://standardebooks.test/ebooks` will show the one
## Installation using Docker
We provide a Dockerfile for testing code changes. You can build an image with:
We provide a Dockerfile for testing code changes. You can create a container with:
```shell
docker build . -t standardebooks -f vms/docker/Dockerfile
docker build . --tag standardebooks --file vms/docker/Dockerfile
```
Then run the built image with:
```shell
docker run -dp 443:443 -v "$(pwd):/standardebooks.org/web" standardebooks:latest
docker run --detach --publish 443:443 --volume "$(pwd):/standardebooks.org/web" standardebooks:latest
```
The site will now be available at `https://localhost/`, although as its a self-signed certificate youll need to accept whatever browser security warnings come up.