Public Repository

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

FROM centos:centos7
MAINTAINER Haydn Solomon

it is always good to have cpanm on board

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

RUN curl -LO
RUN chmod +x ./cpanm

install dancer2

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

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 perl-Redis

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

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