-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-preload
81 lines (71 loc) · 2.72 KB
/
Dockerfile-preload
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#
# Paleobiology Database - Classic backend image
#
# This file is used to build the preload image for the Paleobiology Database Classic
# backend service. It installs a long list of necessary packages, and takes 45 minutes
# or more to build. The Dockerfile found in this directory then uses the preload image
# as a base to build the Classic backend container image very quickly by copying in the
# source code, configuration file and other local content. You can build this preload
# image locally using the command 'pbdb build classic preload'.
FROM perl:5.38-threaded AS paleomacro_classic_preload
ENV LANG=en_US.UTF-8
RUN apt-get update && \
apt-get -y install apt-utils && \
apt-get -y install locales && \
apt-get -y install tzdata && \
echo "$LANG UTF-8" > "/etc/locale.gen" && \
locale-gen && \
apt-get -y install mariadb-client && \
apt-get -y install beanstalkd && \
apt-get -y install vim
RUN cpanm DBI && \
cpanm DBD::MariaDB && \
cpanm Dancer && \
cpanm Moo && \
cpanm Moose && \
cpanm DBIx::Class && \
cpanm CHI && \
cpanm IO::File && \
cpanm YAML && \
cpanm Email::Sender::Simple && \
cpanm Email::MIME::Kit && \
cpanm Email::MIME::Kit::Renderer::TT && \
cpanm Email::Sender && \
cpanm Config::JSON && \
cpanm DateTime && \
cpanm DateTime::Format::MySQL && \
cpanm DBIx::Class::UUIDColumns && \
cpanm DBIx::Class::TimeStamp && \
cpanm DBIx::Class::InflateColumn::Serializer && \
cpanm DBIx::Class::DeploymentHandler && \
cpanm Data::GUID && \
cpanm Crypt::Eksblowfish::Bcrypt && \
cpanm Ouch
RUN cpanm --force Plugin::Tiny && \
cpanm Log::Log4perl && \
cpanm Plugin::Tiny && \
cpanm Beanstalk::Client && \
cpanm String::Random && \
cpanm Cache::FastMmap && \
cpanm Data::Serializer && \
cpanm Text::CSV_XS && \
cpanm Class::Date && \
cpanm Mail::Mailer && \
cpanm Wing::Client && \
cpanm JSON::XS && \
cpanm Server::Starter && \
cpanm Starman && \
cpanm Plack::Middleware::MethodOverride && \
cpanm Plack::Middleware::SizeLimit && \
cpanm Plack::Middleware::CrossOrigin && \
cpanm Net::Server::SS::PreFork && \
cpanm Template::Toolkit && \
cpanm Dancer::Logger::Log4perl && \
cpanm App::Cmd::Setup && \
cpanm IO::Socket::SSL && \
cpanm --force Term::ReadLine::Gnu && \
cpanm URL::Encode
RUN cpanm DBIx::Class::Storage::DBI::MariaDB
LABEL org.opencontainers.image.title="PBDB Classic Base Image"
LABEL org.opencontainers.image.description="This image is used as a base for building the PBDB Classic container image. This version is built with DBD::MariaDB."
LABEL org.opencontainers.image.source=https://github.com/paleobiodb/classic