Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]