2022-06-26 02:59:08 +00:00
|
|
|
FROM debian AS builder
|
|
|
|
|
|
|
|
RUN apt update; apt install unzip
|
|
|
|
COPY ./schema.zip .
|
|
|
|
RUN unzip schema.zip
|
|
|
|
|
2021-10-02 21:26:08 +00:00
|
|
|
FROM postgres:12
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2021-10-16 02:17:06 +00:00
|
|
|
&& apt-get install -y postgresql-plperl-12 postgresql-plpython3-12 libnet-ip-perl libnet-ldap-perl libnet-dns-perl libnet-snmp-perl libnet-server-mail-perl libcrypt-des-perl build-essential cpanminus curl \
|
2021-10-07 05:26:57 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& cpanm Data::Validate::Domain \
|
|
|
|
&& apt-get remove -y build-essential
|
2021-10-05 04:47:26 +00:00
|
|
|
|
2022-06-26 02:59:08 +00:00
|
|
|
COPY --from=builder large.sql /docker-entrypoint-initdb.d/
|