plack-async.dockerfile 341 B

12345678910111213
  1. FROM perl:latest
  2. RUN apt-get update -yqq && apt-get install -yqq nginx
  3. RUN cpanm --notest --no-man-page Plack JSON::XS Unix::Processors DBI DBD::mysql
  4. RUN cpanm --notest --no-man-page Cookie::Baker::XS Twiggy::Prefork HTTP::Parser::XS EV AnyEvent::DBI
  5. ADD nginx.conf ./
  6. ADD app.pl ./
  7. ADD app-async.psgi ./
  8. EXPOSE 8080
  9. CMD perl app.pl -a