Files
openfoodnetwork/docker/run
Neal Chambers 21b7e6e567 Use Dockerv2
2024-09-26 09:21:00 +09:00

23 lines
370 B
Bash
Executable File

#!/bin/bash
set -e
# Use this script to execute commands in the Docker container.
# Example: To run the "ls -l" command in the Docker container, enter the command "docker/run ls -l".
function cleanup {
# capture exit code
code=$?
echo "cleaning up"
# ignore errors
set +e
docker compose down
exit $code
}
trap cleanup EXIT
docker compose run web $@