dancer.dockerfile 472 B

12345678910111213141516171819
  1. FROM perl:5.26
  2. RUN apt update -yqq && apt install -yqq nginx
  3. ADD ./ /dancer
  4. WORKDIR /dancer
  5. RUN cpanm --notest --no-man-page \
  6. JSON IO::Socket::IP IO::Socket::SSL \
  7. [email protected] \
  8. Dancer::Plugin::[email protected] \
  9. [email protected] \
  10. DBD::[email protected] \
  11. JSON::[email protected] \
  12. [email protected] \
  13. [email protected]
  14. CMD nginx -c /dancer/nginx.conf && \
  15. plackup -E production -s Starman --workers=$(nproc) -l /tmp/perl-dancer.sock -a ./app.pl