#!/usr/bin/env bash

# 1️⃣ Stop & remove an existing instance (if it’s there)
docker rm -f html_landingpage || true   # ignore “not found” error

# 2️⃣ Build the image again
docker build -t html_landingpage .

# 3️⃣ Run it detached, map host port 9111 → container port 80,
#    attach to network “npm”, and name it.
docker run -d \
  -p 9111:80 \
  --network npm \
  --name html_landingpage \
  html_landingpage
