PowerDNS-Admin/docker/PowerDNS-Admin/Dockerfile

49 lines
1.4 KiB
Docker
Raw Normal View History

2018-08-25 19:12:58 +02:00
FROM ubuntu:16.04
MAINTAINER Khanh Ngo "k@ndk.name"
2018-04-16 17:42:29 +02:00
ARG ENVIRONMENT=development
ENV ENVIRONMENT=${ENVIRONMENT}
WORKDIR /powerdns-admin
RUN apt-get update -y
RUN apt-get install -y apt-transport-https
RUN apt-get install -y locales locales-all
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
2018-08-25 19:12:58 +02:00
RUN apt-get install -y python3-pip python3-dev supervisor curl mysql-client
2019-01-16 08:21:11 +01:00
# Install node 10.x
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list
# Install yarn
RUN apt-get update -y
RUN apt-get install -y yarn
2018-04-16 17:42:29 +02:00
# Install Netcat for DB healthcheck
RUN apt-get install -y netcat
2018-04-16 17:42:29 +02:00
# lib for building mysql db driver
RUN apt-get install -y libmysqlclient-dev
2018-10-02 09:03:55 +02:00
# lib for building ldap and ssl-based application
2018-04-16 17:42:29 +02:00
RUN apt-get install -y libsasl2-dev libldap2-dev libssl-dev
# lib for building python3-saml
RUN apt-get install -y libxml2-dev libxslt1-dev libxmlsec1-dev libffi-dev pkg-config
2018-04-16 17:42:29 +02: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
COPY ./docker/PowerDNS-Admin/entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]