From a2b34fbeb526c915c0c1a77a4e5c5f8a6c4f4526 Mon Sep 17 00:00:00 2001 From: Jayce Gregg Date: Wed, 8 Mar 2017 12:59:48 -0700 Subject: [PATCH] Add Dockerfile to complement TravisCI Add a Dockerfile to make local dev/testing workflows easier by allowing local checking of links in the same fashion that Travis does. Also add a note on how to serve the html under docs/ via the `nc` baked into busybox. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..97c0fdf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM alpine:latest +MAINTAINER Jayce Gregg + +# +# To start a webserver for viewing the HTML version of this project run this: +# cd /src && while true ; do nc -l 80 < index.html ; done +# + +RUN apk add ruby2.2 \ + ruby2.2-json --no-cache \ + && rm -rf /var/cache/apk/* \ + && gem2.2 install awesome_bot --no-ri --no-rdoc + +COPY . /src +WORKDIR /src + +CMD ["awesome_bot", "README.md", "--allow-dupe", "--allow-redirect", \ + "--allow-ssl", "--allow-timeout", "--allow", "999,403,405,500"]