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"