Public Repository

Last pushed: 7 months ago
Short Description
Development - used for both ansible and stock tracker
Full Description

FROM centos:centos7
MAINTAINER Haydn Solomon haydn.solomon@gmail.com

it is always good to have cpanm on board

docker build -f ./dancer2-dockerfile -t dancer2-20160922 .

RUN curl -LO http://xrl.us/cpanm
RUN chmod +x ./cpanm

install dancer2

RUN yum install -y perl-CPAN \
make \
cpp \
gcc \
tar \
epel-release

RUN yum install -y ansible perl-Rose-DB perl-DBD-SQLite perl-DBD-MySQL \
perl-Plack perl-Plack-Middleware-FixMissingBodyInRedirect \
perl-Plack-Middleware-RemoveRedundantBody perl-Text-CSV \
perl-Finance-Quote perl-GDGraph perl-GD ImageMagick-perl \
perl-WWW-Curl

RUN ./cpanm Clone \
Time::HiRes \
Test::Most \
CGI

RUN ./cpanm --force Finance::QuoteHist::Yahoo

RUN ./cpanm Dancer2
RUN groupadd -r dancer2 -g 1100
RUN useradd -u 1100 -r -g dancer2 -d /home/dancer2 -s /bin/bash -c "Dancer2 user" dancer2
RUN mkdir /home/dancer2
RUN chown -R dancer2:dancer2 /home/dancer2
USER dancer2
VOLUME /home/dancer2
CMD ["plackup", "-r", "/home/dancer2/bin/app.psgi"]

Docker Pull Command
Owner
hsolomon

Comments (0)