Skip to content

Hamz-a/hamz-a.github.io

Repository files navigation

Hamza's blog posts, notes and thoughts.

Installation Instructions

Prerequisites

  • Docker Desktop

Runtime only

  1. Run a container (download image from Docker hub)
  • macOS
docker run --name bhamza.me -dp 4000:4000 --rm --platform linux/amd64 caddydz/hamz-a.github.io && open http://localhost
  • Windows
docker run --name bhamza.me -dp 4000:4000 --rm --platform linux/amd64 caddydz/hamz-a.github.io && start "http://localhost"

Development

  1. Clone the repository
git clone https://github.com/Hamz-a/hamz-a.github.io Hamza
  1. Change into the directory
cd Hamza
  1. Build the Docker image
docker build --no-cache -t caddydz/hamz-a.github.io .
  1. Run a container binding the project into its volume
docker run --name bhamza.me -dp 35729:35729 -p 4000:4000 -v $(pwd):/srv --rm --platform linux/amd64 caddydz/hamz-a.github.io

Port 35729 is bound for live reload

  1. Open http://localhost:4000 in a browser