Dockerfile 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. # This is a Dockerfile for creating a Manet container from a base Ubuntu 14:04 image.
  2. # Manet's code can be found here: https://github.com/vbauer/manet
  3. #
  4. # To use this container, start it as usual:
  5. #
  6. # $ sudo docker run pdelsante/manet
  7. #
  8. # Then find out its IP address by running:
  9. #
  10. # $ sudo docker ps
  11. # CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  12. # d1d7165512e2 pdelsante/manet "/usr/bin/manet" 48 seconds ago Up 47 seconds 8891/tcp romantic_cray
  13. #
  14. # $ sudo docker inspect d1d7165512e2 | grep IPAddress
  15. # "IPAddress": "172.17.0.1",
  16. #
  17. # Now you can connect to:
  18. # http://172.17.0.1:8891
  19. #
  20. FROM ubuntu:16.04
  21. MAINTAINER pietro.delsante_AT_gmail.com
  22. ENV DEBIAN_FRONTEND noninteractive
  23. EXPOSE 8891
  24. RUN apt-get update && \
  25. apt-get -y install curl && \
  26. curl -sL https://deb.nodesource.com/setup_4.x | /bin/bash - && \
  27. apt-get -y install nodejs build-essential xvfb libfontconfig1 && \
  28. npm install -g slimerjs@0.906.2 && \
  29. npm install -g phantomjs@2.1.7 && \
  30. npm install -g manet@0.4.15
  31. ENTRYPOINT ["/usr/bin/manet"]