From 947475621a38590189931fd54e22b05b0cdb82fa Mon Sep 17 00:00:00 2001 From: Stefan Liebl Date: Thu, 2 Jul 2020 19:41:20 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 3 +++ docker-compose.yaml | 5 +---- hello-world.sh | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) create mode 100755 Dockerfile delete mode 100755 hello-world.sh diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 0000000..b6ab3ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:latest + +RUN echo "Hello World" diff --git a/docker-compose.yaml b/docker-compose.yaml index 963fe73..9b18984 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,4 @@ version: '3' services: hello_world: - image: alpine:latest - volumes: - - ./hello-world.sh:/opt/hello-world.sh:ro - command: /bin/sh /opt/hello-world.sh + build: . diff --git a/hello-world.sh b/hello-world.sh deleted file mode 100755 index b5b6a5a..0000000 --- a/hello-world.sh +++ /dev/null @@ -1 +0,0 @@ -echo "Hello World"