-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
38 lines (32 loc) · 1.19 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
FROM anapsix/alpine-java:latest
# 镜像描述
LABEL \
name="ApkSec" \
author="Anemone <x565178035@126.com>" \
maintainer="Anemone <x565178035@126.com>" \
contributor="Anemone <x565178035@126.com>" \
description="A CLI version of ApkSec."
# 修改更新源
RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/edge/main\n\http://https://mirror.tuna.tsinghua.edu.cn/alpine/edge/community" > /etc/apk/repositories
# 安装python和pip install需要的环境
RUN apk add --update \
bash \
python \
python-dev \
py-pip \
build-base \
libffi-dev \
openssl-dev \
libxml2-dev \
libxslt-dev \
&& rm -rf /var/cache/apk/*
# 复制项目,将项目文件复制到docker中
COPY . /ApkSec
ENV PATH="/ApkSec:${PATH}"
# 安装项目的依赖
WORKDIR /ApkSec
RUN pip install -r requirements.txt -i http://pypi.douban.com/simple --trusted-host pypi.douban.com --no-cache-dir
# 提供启动命令,用户输入的命令会接在ENTRYPOINT命令后面
WORKDIR /workspace
# docker run --name "test" -i -v /mnt/d/Store/document/all_my_work/CZY/ApkSec/test_apks:/workspace anemone95/apksec "start -F /workspace/goatdroid.apk"
ENTRYPOINT ["sh", "/ApkSec/mt_apksec"]