mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
12 lines
338 B
Bash
Executable File
12 lines
338 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Prune, build and run docker
|
|
main() {
|
|
cd .. # change docker build context to 1 directory up
|
|
docker container prune -f && echo "Removed old Docker containers"
|
|
docker build -t dotfile-install-test:latest -f test/Dockerfile . && echo "Docker build success"
|
|
docker run -it dotfile-install-test:latest
|
|
}
|
|
|
|
main "$@"
|