From d0ede407220ecee54fe3c8c2dab5bbc37e234e48 Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 23 Oct 2020 22:37:51 -0600 Subject: Add whalesay --- examples/001/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'examples/001') diff --git a/examples/001/Dockerfile b/examples/001/Dockerfile index 3657293..3cab792 100644 --- a/examples/001/Dockerfile +++ b/examples/001/Dockerfile @@ -1,5 +1,10 @@ +# Initializes a build stage and sets a Base Image. FROM alpine:latest -COPY hello.rb /usr/local/bin/hello +# Install the ruby package RUN apk add ruby +# Copy file from the host to the Docker image. +COPY hello.rb /usr/local/bin/hello +# Give "hello" the executable permission RUN chmod +x /usr/local/bin/hello +# Set the default command to run CMD ["hello"] -- cgit v1.2.3