#!/bin/bash
# Stop the running backend
docker stop modocot-backend

# Delete the existing container
docker rm modocot-backend

# Pull the new version from DockerHub
docker pull hftstuttgart/modocot-backend

# Build the container and start it
docker run --name modocot-backend -p 8888:8081 hftstuttgart/modocot-backend:latest &
