Created
August 9, 2019 16:28
-
-
Save benjaminjb/34f5a141d4c0ba2689d083119c2d6926 to your computer and use it in GitHub Desktop.
In the docs folder...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .git | |
| source |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app: | |
| build: . | |
| ports: | |
| - 4567:4567 | |
| volumes: | |
| - .:/usr/src/app |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.3-alpine | |
| COPY . /usr/src/app | |
| VOLUME /usr/src/app | |
| EXPOSE 4567 | |
| WORKDIR /usr/src/app | |
| RUN apk add --update nodejs g++ make | |
| RUN bundle install | |
| CMD ["bundle", "exec", "middleman", "server", "--watcher-force-polling"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We should use
FROM ruby:2.5-alpineinDockerfile.This might be helpful too. https://medium.com/technical-writing-is-easy/how-to-build-an-api-docs-site-using-slate-2e1428780076