2025-09-09 00:37:15 +03:00

14 lines
409 B
Bash
Executable File

#!/bin/bash
# Generate a random name for the container using uuidgen
container_name=$(uuidgen)
# Build the Docker image with your project code and unit tests
docker build -t nyi-backend -f Dockerfile .
# Run the Docker container with the unit tests and attach the output
docker run --tty --rm --name "$container_name" -p 2027:5000 nyi-backend
# Exit the script with the exit code of the container
exit $?