Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:14.04
- MAINTAINER Micheal Waltz <ecliptik@gmail.com>
- #Setup basic environment
- ENV DEBIAN_FRONTEND=noninteractive LANG=en_US.UTF-8 LC_ALL=C.UTF-8 LANGUAGE=en_US.UTF-8
- #Update system and install packages
- RUN [ "apt-get", "-q", "update" ]
- RUN [ "apt-get", "-qy", "--force-yes", "upgrade" ]
- RUN [ "apt-get", "-qy", "--force-yes", "dist-upgrade" ]
- RUN [ "apt-get", "install", "-qy", "--force-yes", \
- "perl", \
- "curl", \
- "build-essential", \
- "cpanminus" ]
- #Install cpan modules
- RUN ["cpanm", "Net::LDAP", "Data::Dumper" ]
- #Copy script.pl and make executable
- COPY [ "./script.pl", "/app/script.pl" ]
- RUN [ "chmod", "+x", "/app/script.pl" ]
- #Set entrypoint of script.pl
- ENTRYPOINT [ "/app/script.pl" ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement