From 95132b68fde3f4a77f6a45baaa444d19645abce1 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 31 Oct 2023 17:26:06 +0100 Subject: [PATCH] make file --- Makefile | 9 +++++++++ Readme.md | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Makefile create mode 100644 Readme.md diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d40b1e --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +build: + docker build -t php-hell-oworld . + +run: + docker run php-hell-oworld + +clean: + docker rmi -f php-hell-oworld + diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..e330d99 --- /dev/null +++ b/Readme.md @@ -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 +```