#!/bin/zsh
# Force delete the old container and re-initialize the container.
sudo docker rm -f security-layer

# Build the Docker image.
sudo docker build --tag security-layer:latest .

# Create a Docker container from the image and connect host port 1111 to container port 1111, and 1114 to 1114.
sudo docker run --name security-layer -d -p 1111:1111 -p 1114:1114 security-layer:latest