Skip to content

Instantly share code, notes, and snippets.

@benjaminjb
Created August 9, 2019 16:28
Show Gist options
  • Save benjaminjb/34f5a141d4c0ba2689d083119c2d6926 to your computer and use it in GitHub Desktop.
Save benjaminjb/34f5a141d4c0ba2689d083119c2d6926 to your computer and use it in GitHub Desktop.
In the docs folder...
app:
build: .
ports:
- 4567:4567
volumes:
- .:/usr/src/app
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"]
@sukumarp2020
Copy link

sukumarp2020 commented Oct 25, 2021

We should use FROM ruby:2.5-alpine in Dockerfile.
This might be helpful too. https://medium.com/technical-writing-is-easy/how-to-build-an-api-docs-site-using-slate-2e1428780076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment