Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. FROM ubuntu:14.04
  2. MAINTAINER Micheal Waltz <ecliptik@gmail.com>
  3.  
  4. #Setup basic environment
  5. ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=en_US.UTF-8
  6.  
  7. #Update system and install packages
  8. RUN [ "apt-get", "-q", "update" ]
  9. RUN [ "apt-get", "-qy", "--force-yes", "upgrade" ]
  10. RUN [ "apt-get", "-qy", "--force-yes", "dist-upgrade" ]
  11. RUN [ "apt-get", "install", "-qy", "--force-yes", \
  12. "perl", \
  13. "curl", \
  14. "build-essential", \
  15. "cpanminus" ]
  16.  
  17. #Install cpan modules
  18. RUN ["cpanm", "Net::LDAP", "Data::Dumper" ]
  19.  
  20. #Copy script.pl and make executable
  21. COPY [ "./script.pl", "/app/script.pl" ]
  22. RUN [ "chmod", "+x", "/app/script.pl" ]
  23.  
  24. #Set entrypoint of script.pl
  25. ENTRYPOINT [ "/app/script.pl" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement