2018-03-30 06:49:35 +00:00
|
|
|
FROM ubuntu:latest
|
|
|
|
MAINTAINER Khanh Ngo "ngokhanhit@gmail.com"
|
|
|
|
ARG ENVIRONMENT=development
|
|
|
|
ENV ENVIRONMENT=${ENVIRONMENT}
|
|
|
|
|
|
|
|
WORKDIR /powerdns-admin
|
|
|
|
|
|
|
|
RUN apt-get update -y
|
2018-04-02 06:38:53 +00:00
|
|
|
RUN apt-get install -y python3-pip python3-dev supervisor
|
|
|
|
|
|
|
|
# lib for building mysql db driver
|
|
|
|
RUN apt-get install -y libmysqlclient-dev
|
|
|
|
|
|
|
|
# lib for buiding ldap and ssl-based application
|
2018-03-30 06:49:35 +00:00
|
|
|
RUN apt-get install -y libsasl2-dev libldap2-dev libssl-dev
|
|
|
|
|
2018-04-02 06:38:53 +00:00
|
|
|
# lib for building python3-saml
|
|
|
|
RUN apt-get install -y libxml2-dev libxslt1-dev libxmlsec1-dev libffi-dev pkg-config
|
|
|
|
|
2018-03-30 06:49:35 +00:00
|
|
|
COPY ./requirements.txt /powerdns-admin/requirements.txt
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
|
|
|
ADD ./supervisord.conf /etc/supervisord.conf
|
|
|
|
ADD . /powerdns-admin/
|
|
|
|
COPY ./configs/${ENVIRONMENT}.py /powerdns-admin/config.py
|
2018-04-02 06:38:53 +00:00
|
|
|
|