diff options
Diffstat (limited to 'examples/001')
| -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"] |
