Clone the repository
git clone ssh://github.com/vttc08/htpc-troubleshooterDeploy to prod
Build Python container
docker build -t htpc-troubleshooter .- it will use root
Dockerfileand build a container calledhtpc-troubleshooter
Build and Prepare hugo static site
mkdir support- this must be completed because of permission
docker build --build-arg GH_TOKEN="" --build-arg REPO="github.com/vttc08/htpc-troubleshooter-support" -t hugo -f hugo.Dockerfile .- uses
hugo.Dockerfileto build the container which include hugo assets - container name is
hugo
Running hugo
docker run --rm -it --name hugo -v ./support:/static hugo hugo build --baseURL http://10.10.120.16:8001/support -d /static- the
baseURLhas to be changed everything on build, it must match host and port of the Python container, including port bindings - uses base directory of
/support, which is used by FastAPI