Improved docker workflow

This commit is contained in:
aronmal 2024-01-05 03:26:21 +01:00
parent 3379a685e1
commit 1d4f7e6fc6
Signed by: aronmal
GPG key ID: 816B7707426FC612
4 changed files with 16 additions and 596 deletions

View file

@ -68,7 +68,7 @@ if [ $deploy ]; then
fi
# Run Docker container in the background and capture container ID
docker build -t $image_name .
docker build --no-cache -t $image_name .
if [ $deploy ]; then
container_id=$(docker run --name $container_name -p 3000:3000 -d $image_name)