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