12345678910111213141516171819 |
- FROM perl:5.26
- RUN apt update -yqq && apt install -yqq nginx
- ADD ./ /dancer
- WORKDIR /dancer
- RUN cpanm --notest --no-man-page \
- JSON IO::Socket::IP IO::Socket::SSL \
- [email protected] \
- Dancer::Plugin::[email protected] \
- [email protected] \
- DBD::[email protected] \
- JSON::[email protected] \
- [email protected] \
- [email protected]
- CMD nginx -c /dancer/nginx.conf && \
- plackup -E production -s Starman --workers=$(nproc) -l /tmp/perl-dancer.sock -a ./app.pl
|