Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker build failed #75

Open
angarod opened this issue Jun 14, 2019 · 1 comment
Open

Docker build failed #75

angarod opened this issue Jun 14, 2019 · 1 comment

Comments

@angarod
Copy link

angarod commented Jun 14, 2019

The step 8 of Docker build (Step 8/14 : RUN python3 setup.py install) return :
python3: can't open file 'setup.py': [Errno 2] No such file or directory

@otgrkiss
Copy link

otgrkiss commented Jan 8, 2020

What I did:

`FROM debian:buster-slim
EXPOSE 9000

RUN apt-get update &&
apt-get -y install python3 python3-pip git build-essential default-libmysqlclient-dev

COPY . /MISP-Taxii-Server/
COPY config/config.default.yaml config/config.yaml

RUN pip3 install libtaxii==1.1.111 mysqlclient gunicorn opentaxii

WORKDIR /MISP-Taxii-Server
RUN python3 setup.py install

RUN export OPENTAXII_CONFIG=/MISP-Taxii-Server/config.yaml && export PYTHONPATH=.
RUN opentaxii-sync-data config/data-configuration.yaml

CMD ["gunicorn", "-b", "0.0.0.0:9000", "opentaxii.http:app"]`

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

No branches or pull requests

2 participants