make file

This commit is contained in:
fredrik 2023-10-31 17:26:06 +01:00
parent 1fd09eaabb
commit 95132b68fd
2 changed files with 21 additions and 0 deletions

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
build:
docker build -t php-hell-oworld .
run:
docker run php-hell-oworld
clean:
docker rmi -f php-hell-oworld

12
Readme.md Normal file
View File

@ -0,0 +1,12 @@
# Docker testing
```sh
docker build -t php-hell-oworld . # build
docker run php-hell-oworld # run
docker rmi -f php-hell-oworld # clean
```
```sh
make build # build -t php-hell-oworld .
make run # docker run php-hell-oworld
make clean # docker rmi -f php-hell-oworld
```