summaryrefslogtreecommitdiff
path: root/examples/001/Dockerfile
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-10-23 22:37:51 -0600
committermo khan <mo.khan@gmail.com>2020-10-23 22:37:51 -0600
commitd0ede407220ecee54fe3c8c2dab5bbc37e234e48 (patch)
treebcd4bc8b2b4620ce5b7908f66acedb1486983323 /examples/001/Dockerfile
parent0af00104d1d6b64507e60693167188eba1b73016 (diff)
Add whalesay
Diffstat (limited to 'examples/001/Dockerfile')
-rw-r--r--examples/001/Dockerfile7
1 files changed, 6 insertions, 1 deletions
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"]