Create deploy.sh bash script to run the deployment

This commit is contained in:
Murtadha 2024-07-11 23:18:49 -04:00
parent bea2441807
commit f2559f1fe1
2 changed files with 32 additions and 14 deletions

12
deploy.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
set -e
# Build the Docker image
docker build -t frontend:latest .
# Stop and remove the existing container
docker stop frontend || true
docker rm frontend || true
# Run the new container
docker run -d --name frontend -p 5173:5173 frontend:latest