Skip to content

Commit

Permalink
Merge pull request #89 from s01ipsist/dockerize
Browse files Browse the repository at this point in the history
Add Docker to run executable in container
  • Loading branch information
benbalter authored Oct 29, 2018
2 parents badf69b + cf4aa30 commit b33b5ce
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ruby:2.5

RUN apt-get update && \
apt-get install -y --no-install-recommends \
ghostscript \
libfontconfig \
libreoffice-writer \
libxslt1-dev

RUN gem install word-to-markdown --no-rdoc --no-ri

WORKDIR /app

CMD echo "Nothing to run"
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ Word-to-markdown requires `soffice` a command line interface to LibreOffice that
script/cibuild
```

## Docker

Everything you need to run the executable locally

```
docker-compose build
docker-compose run --rm app w2m --help
docker-compose run --rm app w2m test/fixtures/em.docx
```

## Server

[Word-to-markdown-demo](https://github.com/benbalter/word-to-markdown-demo) contains a lightweight server for converting Word Documents as a service.
Expand Down
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3.2'
services:
app:
build: .
volumes:
- .:/app:delegated

0 comments on commit b33b5ce

Please sign in to comment.