mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
更新dockerfile
This commit is contained in:
+4
-3
@@ -3,12 +3,13 @@ MAINTAINER milktea@vmoe.info
|
|||||||
|
|
||||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
||||||
RUN apk update && apk --no-cache add git build-base libffi-dev libxml2-dev libxslt-dev libressl-dev
|
RUN apk update && apk --no-cache add git build-base libffi-dev libxml2-dev libxslt-dev libressl-dev
|
||||||
ADD . /OneForAll/
|
ADD requirements.txt /requirements.txt
|
||||||
RUN pip install -r /OneForAll/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
RUN pip install -r /requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
|
||||||
RUN git clone https://github.com/blechschmidt/massdns
|
RUN git clone https://github.com/blechschmidt/massdns
|
||||||
WORKDIR /massdns
|
WORKDIR /massdns
|
||||||
RUN make
|
RUN make
|
||||||
|
ADD . /OneForAll/
|
||||||
RUN mv /massdns/bin/massdns /OneForAll/oneforall/thirdparty/massdns/massdns_linux_x86_64
|
RUN mv /massdns/bin/massdns /OneForAll/oneforall/thirdparty/massdns/massdns_linux_x86_64
|
||||||
WORKDIR /OneForAll/oneforall
|
WORKDIR /OneForAll/oneforall
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/ash"]
|
ENTRYPOINT ["/bin/ash"]
|
||||||
@@ -122,7 +122,7 @@ docker run -it oneforall
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker build -t oneforall .
|
docker build -t oneforall .
|
||||||
docker run -it -v ~/results:/OneForAll/oneforall/results oneforall
|
docker run -it --rm -v ~/results:/OneForAll/oneforall/results oneforall
|
||||||
```
|
```
|
||||||
结果会输出在本地目录`~/results`
|
结果会输出在本地目录`~/results`
|
||||||
|
|
||||||
|
|||||||
@@ -515,8 +515,8 @@ def call_massdns(massdns_path, dict_path, ns_path, output_path, log_path,
|
|||||||
f'--processes {process_num} --socket-count {socket_num} ' \
|
f'--processes {process_num} --socket-count {socket_num} ' \
|
||||||
f'--hashmap-size {concurrent_num} --resolvers {ns_path} ' \
|
f'--hashmap-size {concurrent_num} --resolvers {ns_path} ' \
|
||||||
f'--resolve-count {resolve_num} --type {query_type} ' \
|
f'--resolve-count {resolve_num} --type {query_type} ' \
|
||||||
f'--flush --output J --outfile {output_path} --drop-group ' \
|
f'--flush --output J --outfile {output_path} ' \
|
||||||
f'--drop-user --error-log {log_path} {dict_path}'
|
f'--error-log {log_path} {dict_path}'
|
||||||
logger.log('INFOR', f'执行命令 {cmd}')
|
logger.log('INFOR', f'执行命令 {cmd}')
|
||||||
subprocess.run(args=cmd, shell=True)
|
subprocess.run(args=cmd, shell=True)
|
||||||
logger.log('INFOR', f'结束执行massdns')
|
logger.log('INFOR', f'结束执行massdns')
|
||||||
|
|||||||
Reference in New Issue
Block a user