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"