blob: 3cab7922da909d2a774caadac250f5ca7a87a5a6 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# Initializes a build stage and sets a Base Image.
FROM alpine:latest
# 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"]
|