diff options
| author | mo khan <mo.khan@gmail.com> | 2020-10-23 22:37:51 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-10-23 22:37:51 -0600 |
| commit | d0ede407220ecee54fe3c8c2dab5bbc37e234e48 (patch) | |
| tree | bcd4bc8b2b4620ce5b7908f66acedb1486983323 /examples | |
| parent | 0af00104d1d6b64507e60693167188eba1b73016 (diff) | |
Add whalesay
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/001/Dockerfile | 7 |
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"] |
