Dockerfile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. FROM perl:5.20
  2. # secure by default ♥ (thanks to sri!)
  3. ENV PERL_CPANM_OPT --verbose --mirror https://cpan.metacpan.org
  4. # TODO find a way to make --mirror-only / SSL work with backpan too :(
  5. RUN cpanm Digest::SHA Module::Signature
  6. # TODO find a way to make --verify work with backpan as well :'(
  7. #ENV PERL_CPANM_OPT $PERL_CPANM_OPT --verify
  8. # reinstall cpanm itself, for good measure
  9. RUN cpanm App::cpanminus
  10. RUN cpanm [email protected]
  11. RUN cpanm EV
  12. RUN cpanm IO::Socket::IP
  13. RUN cpanm --notest IO::Socket::SSL
  14. # the tests for IO::Socket::SSL like to hang... :(
  15. RUN cpanm Term::ReadKey
  16. RUN apt-get update && apt-get install -y git vim --no-install-recommends && rm -rf /var/lib/apt/lists/*
  17. ENV LANG C.UTF-8
  18. RUN git clone https://github.com/jtratner/vim-flavored-markdown.git ~/.vim
  19. RUN { \
  20. echo 'scriptencoding utf-8'; \
  21. echo 'syntax on'; \
  22. echo 'filetype plugin indent on'; \
  23. echo 'set list listchars=tab:»·,nbsp:_,extends:¬ noet ts=4 sw=4 nobackup noswapfile'; \
  24. echo 'au BufNewFile,BufRead *.md,*.markdown setlocal filetype=ghmarkdown'; \
  25. } > ~/.vimrc
  26. COPY . /usr/src/docker-library-docs
  27. WORKDIR /usr/src/docker-library-docs
  28. ENTRYPOINT ["./push.pl"]