Advertisement
Guest User

Untitled

a guest
Sep 16th, 2023
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. FROM httpd:2.4
  2.  
  3. LABEL new_zerochan_test 0.8.4
  4.  
  5. RUN apt-get update \
  6. && apt-get install -y --no-install-recommends \
  7. curl \
  8. ca-certificates \
  9. perl \
  10. make \
  11. gcc \
  12. libxml-parser-perl \
  13. libc6-dev \
  14. && rm -rf /var/lib/apt/lists/*
  15. RUN curl -L http://cpanmin.us | perl - App::cpanminus \
  16. && cpanm local::lib CGI::Session Digest::SHA::PurePerl List::MoreUtils Net::DNS XML::Simple LWP::UserAgent JSON
  17.  
  18. RUN sed -i.bak -e \
  19. 's%#LoadModule cgid_module%LoadModule cgid_module%g; \
  20. s%#AddHandler cgi-script .cgi%AddHandler cgi-script .pl .cgi%g; \
  21. s%#ServerName www.example.com:80%ServerName localhost:80%g; \
  22. s%Options Indexes FollowSymLinks%Options Indexes FollowSymLinks ExecCGI%g;' \
  23. /usr/local/apache2/conf/httpd.conf
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement