-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
56 lines (48 loc) · 1.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Base image https://hub.docker.com/_/perl/
FROM perl:latest
# install cpanm
RUN curl -L http://cpanmin.us | perl - App::cpanminus
# install dependencies
RUN cpanm Cache::Memcached
RUN cpanm Catalyst::Action::RenderView
RUN cpanm Catalyst::Controller::REST
RUN cpanm Catalyst::Devel
RUN cpanm Catalyst::Model::DBIC::Schema
RUN cpanm Catalyst::Plugin::ConfigLoader
RUN cpanm Catalyst::Plugin::PageCache
RUN cpanm Catalyst::Plugin::Static::Simple
RUN cpanm Catalyst::Plugin::Unicode
RUN cpanm Catalyst::Runtime
RUN cpanm Catalyst::ScriptRunner
RUN cpanm Catalyst::View::Email
RUN cpanm Catalyst::View::TT
RUN cpanm Config::General
RUN cpanm Data::Printer
RUN cpanm Data::UUID
RUN cpanm DateTime::Format::MySQL
RUN cpanm DBD::mysql
RUN cpanm Email::Valid
# install libgb, required for GD.pm
RUN apt-get update && apt-get install -y libgd2-xpm-dev && apt-get clean
RUN cpanm GD
RUN cpanm HTML::FormHandler::Moose
RUN cpanm HTML::Scrubber
RUN cpanm Log::Log4perl::Catalyst
RUN cpanm --force MediaWiki::Bot
RUN cpanm Search::QueryParser
RUN cpanm --verbose Template::Plugin::Number::Format
RUN cpanm Term::Size::Any
RUN cpanm XML::Feed
RUN cpanm --force DBIx::Class::Result::ColumnData
RUN cpanm SQL::Translator
RUN cpanm MooseX::ClassAttribute
# setup environment variables
ENV PERL5LIB=/src/RfamWeb\
:/src/Rfam/Schemata\
:/src/PfamBase/lib\
:/src/PfamLib\
:/src/PfamSchemata
ENV RFAMWEB_CONFIG=/src/RfamWeb/config/rfamweb.conf
ENV DBIC_TRACE=1
EXPOSE 3000
ENTRYPOINT ["/src/RfamWeb/script/rfamweb_server.pl", "-p", "3000", "--debug", "--restart"]