Add yarn support

Signed-off-by: Felix Kaechele <felix@kaechele.ca>
This commit is contained in:
Felix Kaechele
2018-06-10 15:04:39 +02:00
parent 17fb6b0ddd
commit 396075efda
5 changed files with 1124 additions and 1 deletions

View File

@ -6,7 +6,14 @@ ENV ENVIRONMENT=${ENVIRONMENT}
WORKDIR /powerdns-admin
RUN apt-get update -y
RUN apt-get install -y python3-pip python3-dev supervisor
RUN apt-get install -y python3-pip python3-dev supervisor curl
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
# lib for building mysql db driver
RUN apt-get install -y libmysqlclient-dev
@ -19,6 +26,7 @@ RUN apt-get install -y libxml2-dev libxslt1-dev libxmlsec1-dev libffi-dev pkg-co
COPY ./requirements.txt /powerdns-admin/requirements.txt
RUN pip3 install -r requirements.txt
RUN yarn
ADD ./supervisord.conf /etc/supervisord.conf
ADD . /powerdns-admin/