Dockerfile QA

This commit is contained in:
Ajin Abraham
2021-05-22 13:29:05 -07:00
parent 2d614059d4
commit 6baa006fb0
2 changed files with 8 additions and 7 deletions
+4 -6
View File
@@ -33,7 +33,7 @@ RUN apt update -y && apt install -y --no-install-recommends \
fontconfig \
xfonts-75dpi \
xfonts-base \
python3.8 \
python3.9 \
python3-dev \
python3-pip \
wget \
@@ -43,18 +43,16 @@ RUN apt update -y && apt install -y --no-install-recommends \
RUN locale-gen en_US.UTF-8
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
# Install Wkhtmltopdf & OpenJDK
# Install wkhtmltopdf & OpenJDK
ARG TARGETPLATFORM
COPY scripts/install_java_wkhtmltopdf.sh .
RUN ./install_java_wkhtmltopdf.sh && rm -rf ./install_java_wkhtmltopdf.sh
RUN ./install_java_wkhtmltopdf.sh
WORKDIR /root/Mobile-Security-Framework-MobSF
# Copy static
COPY requirements.txt .
# Install Requirements
COPY requirements.txt .
RUN pip3 install --upgrade setuptools pip && \
pip3 install --quiet --no-cache-dir -r requirements.txt
+4 -1
View File
@@ -22,4 +22,7 @@ wget --quiet -O /tmp/${WKH_FILE} "${WKH_URL}" && \
echo "Installing $JDK_FILE ..."
wget --quiet "${JDK_URL}" && \
tar zxf "${JDK_FILE}" && \
rm -f "${JDK_FILE}"
rm -f "${JDK_FILE}"
# Delete script
rm $0