1- FROM python:3.10
1+ FROM python:3.11
22
33# Install and configure Poetry
44RUN pip3 install poetry
55
66# Setup the convertor from pyproject.toml to requirements.txt
7- RUN pip3 install click toml
7+ RUN pip3 install click toml tomli
88RUN wget https://raw.githubusercontent.com/jla524/requirements/main/requirements/convert.py -O /convert.py
99
1010# Convert Zeratool's dependencies
1111COPY /docker/zeratool_lib /zeratool_lib
12- RUN python3 /convert.py --noversion /zeratool_lib
12+ RUN python3 /convert.py --no-version /zeratool_lib
1313RUN mv /zeratool_lib/requirements.txt /requirements.zeratool_lib.txt
1414
1515# Copies service's dependencies
1616COPY /docker/requirements.txt /requirements.service.txt
1717
1818# Convert module's dependencies
1919COPY /pyproject.toml /pyproject.toml
20- RUN python3 /convert.py --noversion /
20+ RUN python3 /convert.py --no-version /
2121RUN mv /requirements.txt /requirements.aeg.txt
2222
23+ # Download the commons library
24+ RUN git clone https://github.com/CyberReasoningSystem/commons /commons
25+
2326# Install all dependencies
2427RUN pip3 install -r /requirements.service.txt
2528RUN pip3 install -r /requirements.aeg.txt
@@ -30,9 +33,6 @@ COPY /automatic_exploit_generation /automatic_exploit_generation
3033COPY /docker/protobuf /protobuf
3134COPY /docker/zeratool_lib_service.py /zeratool_lib_service.py
3235
33- # Download the commons library
34- RUN git clone https://github.com/CyberReasoningSystem/commons /commons
35-
3636# Set PYTHONPATH
3737ENV PYTHONPATH=/zeratool_lib/zeratool_lib:/protobuf:/automatic_exploit_generation:/commons
3838
0 commit comments