forked from MobSF/Mobile-Security-Framework-MobSF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (44 loc) · 1.33 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:16.04
MAINTAINER Ajin Abraham <[email protected]>
# Update the repository sources list
RUN apt-get update -y
#Install Git and required Libs
RUN apt-get install -y \
git \
build-essential \
libssl-dev \
libffi-dev \
libxml2-dev \
libxslt1-dev
#Install Oracle JDK 8
RUN apt-get install -y software-properties-common && \
add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java8-installer && \
apt-get clean
#Install Python, pip
RUN \
apt-get install -y \
python \
python-dev \
python-pip && \
pip install --upgrade pip
#Cleanup
RUN \
rm -rf /var/lib/apt/lists/*
#Clone MobSF master
WORKDIR /root
RUN git clone https://github.com/ajinabraham/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
#Enable Use Home Directory
WORKDIR /root/Mobile-Security-Framework-MobSF/MobSF
RUN sed -i 's/USE_HOME = False/USE_HOME = True/g' settings.py
#Expose MobSF Port
EXPOSE 8000
#Run MobSF
WORKDIR /root/Mobile-Security-Framework-MobSF
CMD ["python","manage.py","runserver","0.0.0.0:8000"]