From e571eb060692fb9a6feb7f9f7899a34c8662b507 Mon Sep 17 00:00:00 2001 From: mattrossman Date: Sun, 25 Oct 2020 22:18:57 -0400 Subject: [PATCH] Add Dockerfile with usage notes --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..88a4905 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# USAGE: +# docker run --rm -it -v $(pwd):/work [image] build inputfile.twee index.html +# Replace [image] with the appropriate image name + +FROM ruby:2.7 + +WORKDIR /app + +COPY . /app + +RUN apt update && apt install -y nodejs +RUN bundle install &&\ + gem build twee2.gemspec &&\ + gem install ./twee2-0.5.0.gem &&\ + rm Gemfile.lock + +WORKDIR /work +ENTRYPOINT ["twee2"] +