From bc57016ab7317df3d85ffb10dce2ad4666e30f25 Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Thu, 2 Jul 2020 19:29:03 +0200 Subject: [PATCH] hello-world.sh --- docker-compose.yaml | 4 +++- hello-world.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 hello-world.sh diff --git a/docker-compose.yaml b/docker-compose.yaml index f09ea0c..963fe73 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,4 +3,6 @@ version: '3' services: hello_world: image: alpine:latest - command: [/bin/echo, 'Hello world'] + volumes: + - ./hello-world.sh:/opt/hello-world.sh:ro + command: /bin/sh /opt/hello-world.sh diff --git a/hello-world.sh b/hello-world.sh new file mode 100755 index 0000000..b5b6a5a --- /dev/null +++ b/hello-world.sh @@ -0,0 +1 @@ +echo "Hello World"