Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

cobra的dockerfile创建的image,不能使用git克隆代码 #740

Closed
z0x010 opened this issue Feb 27, 2018 · 1 comment
Closed

cobra的dockerfile创建的image,不能使用git克隆代码 #740

z0x010 opened this issue Feb 27, 2018 · 1 comment

Comments

@z0x010
Copy link

z0x010 commented Feb 27, 2018

##在cobra首页上输入git代码地址,并不能完成代码下载和分析
分析Dockefile发现少安装了git,在Dockerfile中增加安装git即可。
最终的Dockerfile如下:

FROM ubuntu:xenial

COPY . /code/
WORKDIR /code

RUN apt-get update && apt-get install -y python-pip curl git \
    && apt-get autoremove \
    && apt-get clean \
    && apt-get autoclean \
    && pip install -r requirements.txt \
    && cp config.template config

EXPOSE 5000
CMD ["python", "cobra.py", "-H", "0.0.0.0", "-P", "5000"]
@FeeiCN FeeiCN closed this as completed in 446a5a8 Mar 1, 2018
@FeeiCN
Copy link
Owner

FeeiCN commented Mar 1, 2018

感谢 446a5a8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants