File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM dannyben/alpine-ruby:3.2.2
2+
3+ RUN gem install madness -v 1.1.2
4+
5+ WORKDIR /docs
6+
7+ VOLUME /docs
8+
9+ EXPOSE 3000
10+
11+ ENTRYPOINT ["madness" ]
Original file line number Diff line number Diff line change @@ -384,14 +384,26 @@ $ alias madness='docker run --rm -it -v $PWD:/docs -p 3000:3000 dannyben/madness
384384$ madness --help
385385` ` `
386386
387+ or use docker compose :
388+
389+ ` ` ` yaml
390+ # docker-compose.yml
391+ services:
392+ web:
393+ image: dannyben/madness
394+ volumes: [".:/docs"]
395+ ports: ["3000:3000"]
396+ command: server
397+ ` ` `
398+
387399For more information about the docker image, see :
388400
389401- [Madness image on Docker Hub][dockerhub]
390402- [Madness Dockerfile and Docker Compose][dockerfile]
391403
392404
393405[dockerhub] : https://hub.docker.com/r/dannyben/madness/
394- [dockerfile] : https://github.com/DannyBen/docker- madness
406+ [dockerfile] : https://github.com/DannyBen/madness/blob/master/Dockerfile
395407[css] : https://github.com/DannyBen/madness/blob/master/app/public/css/main.css
396408[sasstool] : https://github.com/DannyBen/sasstool
397409
Original file line number Diff line number Diff line change 1+ services :
2+ web :
3+ build : .
4+ image : dannyben/madness
5+ volumes :
6+ - ./:/docs
7+ ports :
8+ - 3000:3000
9+ command : server
You can’t perform that action at this time.
0 commit comments