backend: initi backend
This commit is contained in:
13
backend/run.sh
Executable file
13
backend/run.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/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 $?
|
||||
Reference in New Issue
Block a user