123456789101112131415161718192021 |
- FROM perl:5.26
- RUN apt-get update -yqq && apt-get 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]
- EXPOSE 8080
- CMD nginx -c /dancer/nginx.conf && \
- plackup -E production -s Starman --workers=$(nproc) -l /tmp/perl-dancer.sock -a ./app.pl
|