Skip to content

Instantly share code, notes, and snippets.

@skayred
Created September 28, 2017 07:24
Show Gist options
  • Save skayred/8a6233ea942390eaa6a90e891d78e7e4 to your computer and use it in GitHub Desktop.
Save skayred/8a6233ea942390eaa6a90e891d78e7e4 to your computer and use it in GitHub Desktop.
FROM ruby:2.3.3
RUN apt-get update
RUN apt-get install -y nodejs
RUN gem install sinatra --no-rdoc --no-ri
COPY ["Gemfile", "/Gemfile"]
COPY ["lint.sh", "/lint.sh"]
COPY ["lint.rb", "/lint.rb"]
COPY ["unit.rb", "/unit.rb"]
ENTRYPOINT ["/bin/bash /lint.sh"]
EXPOSE 4000
sk_@sk-s-Air sinatra-linter $ docker build -t lint .
Sending build context to Docker daemon 71.82 MB
Step 1 : FROM ruby:2.3.3
---> 0e1db669d557
Step 2 : RUN apt-get update
---> Using cache
---> 3c75f6d5586c
Step 3 : RUN apt-get install -y nodejs
---> Using cache
---> 864059a3b318
Step 4 : RUN gem install sinatra --no-rdoc --no-ri
---> Using cache
---> c37a71c0b05c
Step 5 : COPY Gemfile /Gemfile
---> Using cache
---> 9bafcdce2f58
Step 6 : COPY lint.sh /lint.sh
---> Using cache
---> 1c7afee21d2f
Step 7 : COPY lint.rb /lint.rb
---> Using cache
---> e25b025cfcb5
Step 8 : COPY unit.rb /unit.rb
---> Using cache
---> a6d3c4396128
Step 9 : ENTRYPOINT /bin/bash /lint.sh
---> Running in 5a25157d3a6a
---> 9fe2f2d5a31f
Removing intermediate container 5a25157d3a6a
Step 10 : EXPOSE 4000
---> Running in bfedb1e5d676
---> 133ca48db946
Removing intermediate container bfedb1e5d676
Successfully built 133ca48db946
sk_@sk-s-Air sinatra-linter $ docker run lint
docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/bin/bash /lint.sh\\\": stat /bin/bash /lint.sh: no such file or directory\"\n".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment