dancer.dockerfile 493 B

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