Dockerfile updated. Now with sqlite client and pdf generator (#377)

* Dockerfile updated. Now with sqlite client and pdf generator
This commit is contained in:
OscarAkaElvis
2017-03-23 23:03:03 +05:30
committed by Ajin Abraham
parent 316f66bf97
commit feebb98e1a
+26 -9
View File
@@ -2,9 +2,15 @@ FROM ubuntu:16.04
MAINTAINER Ajin Abraham <[email protected]>
# Update the repository sources list
ENV PDFGEN_PKGFILE wkhtmltox-0.12.1_linux-trusty-amd64.deb
ENV PDFGEN_URL https://downloads.wkhtmltopdf.org/0.12/0.12.1/${PDFGEN_PKGFILE}
#Update the repository sources list
RUN apt-get update -y
#Install xorg (needed for pdf generation)
RUN apt-get install -y xorg
#Install Git and required Libs
RUN apt-get install -y \
git \
@@ -24,15 +30,22 @@ RUN apt-get install -y software-properties-common && \
#Install Python, pip
RUN \
apt-get install -y \
python \
python-dev \
python-pip && \
pip install --upgrade pip
apt-get install -y \
python \
python-dev \
python-pip && \
pip install --upgrade pip
#Install sqlite client and pdf generator needed dependencies
RUN \
apt-get install -y \
sqlite3 \
fontconfig-config \
libjpeg-turbo8 \
fontconfig
#Cleanup
RUN \
rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/lib/apt/lists/*
#Clone MobSF master
WORKDIR /root
@@ -40,7 +53,6 @@ RUN git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
#Enable Virtualenv and Install Dependencies
WORKDIR /root/Mobile-Security-Framework-MobSF
RUN pip install -r requirements.txt && \
pip install html5lib==1.0b8
@@ -48,6 +60,11 @@ RUN pip install -r requirements.txt && \
WORKDIR /root/Mobile-Security-Framework-MobSF/MobSF
RUN sed -i 's/USE_HOME = False/USE_HOME = True/g' settings.py
#Install pdf generator
RUN wget ${PDFGEN_URL}
RUN dpkg -i ${PDFGEN_PKGFILE}
RUN rm -rf ${PDFGEN_PKGFILE} 2>/dev/null
#Expose MobSF Port
EXPOSE 8000