Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. Docker version 1.9.1, build a34a1d5
  2.  
  3. FROM ubuntu
  4.  
  5. # File Author / Maintainer
  6. MAINTAINER Parzee info@parzee.com
  7.  
  8. # Install Components.
  9.  
  10. # Update the repository
  11. ENV LANG en_US.UTF-8
  12. ENV DEBIAN_FRONTEND noninteractive
  13.  
  14. RUN apt-get update
  15. RUN locale-gen en_US en_US.UTF-8
  16. # Install necessary tools
  17. RUN apt-get install -y nano vim wget dialog net-tools
  18. RUN apt-get install lighttpd -y
  19. RUN apt-get install php5-common php5-cgi php5 -y
  20. RUN lighty-enable-mod fastcgi-php
  21. RUN update-rc.d -f lighttpd disable
  22. RUN mkdir -p /usr/local/src/imbue/application/imbue/utils/security/des
  23.  
  24. ADD lighttpd.conf /etc/lighttpd/
  25.  
  26. VOLUME ["/var/log/lighttpd"]
  27.  
  28. RUN ls -al /etc/lighttpd/lighttpd.conf
  29.  
  30. RUN /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
  31.  
  32. EXPOSE 8083
  33.  
  34. lighttpd:
  35. image: parzee/lighttpd
  36. ports:
  37. - "8083:8083"
  38. volumes:
  39. - volumes/log:/var/log/lighttpd
  40.  
  41. docker run -h lighttpd -p 8083:8083 -d -v `pwd`/volumes/log:/var/log/lighttpd -t parzee/lighttpd
  42.  
  43. Creating lighttpd_lighttpd_1
  44. ERROR: volumes/log includes invalid characters for a local volume name, only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed
  45.  
  46. .
  47. ├── docker-compose.yml
  48. ├── Dockerfile
  49. ├── lighttpd.conf
  50. └── volumes
  51. ├── etc
  52. │   └── lighttpd
  53. │   └── lighttpd.conf
  54. └── log
  55.  
  56. 4 directories, 4 files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement