@@ -21,27 +21,22 @@ ENV build_deps="wget xz-utils git gdb tcl software-properties-common"
2121RUN apt-get update --fix-missing
2222RUN apt-get install -y $build_deps $lib_deps
2323
24- # Add deadsnakes PPA for multiple Python versions
24+ # Add deadsnakes PPA for multiple Python versions
2525RUN add-apt-repository ppa:deadsnakes/ppa
2626RUN apt-get update
2727RUN set -ex; \
28- if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
29- apt-get update && apt-get install -y python3.10-dev \
30- && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1; \
31- elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
32- apt-get update && apt-get install -y python3.8-dev \
33- && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1; \
34- else \
35- echo "Unsupported platform: $TARGETPLATFORM" && exit 1; \
36- fi
28+ apt-get update && apt-get install -y python3.10-dev python3-pip \
29+ && update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1;
30+ RUN python3 -m pip install pysvf -i https://test.pypi.org/simple/
31+ RUN python3 -m pip install z3-solver
3732
3833# Fetch and build SVF source.
3934RUN echo "Downloading LLVM and building SVF to " ${HOME}
4035WORKDIR ${HOME}
4136RUN git clone "https://github.com/SVF-tools/SVF.git"
4237WORKDIR ${HOME}/SVF
4338RUN echo "Building SVF ..."
44- RUN bash ./build.sh
39+ RUN bash ./build.sh debug
4540
4641# Export SVF, llvm, z3 paths
4742ENV PATH=${HOME}/SVF/Release-build/bin:$PATH
@@ -51,11 +46,11 @@ ENV LLVM_DIR=${HOME}/SVF/llvm-$llvm_version.obj
5146ENV Z3_DIR=${HOME}/SVF/z3.obj
5247RUN ln -s ${Z3_DIR}/bin/libz3.so ${Z3_DIR}/bin/libz3.so.4
5348
54- # Fetch and build
49+ # Fetch and build Software-Analysis-Studio
5550WORKDIR ${HOME}
5651RUN git clone "https://github.com/SVF-tools/Software-Analysis-Studio.git"
5752WORKDIR ${HOME}/Software-Analysis-Studio
58- RUN echo "Building ..."
59- RUN sed -i 's/lldb/gdb/g' ${HOME}/Teaching- Software-Analysis/.vscode/launch.json
60- RUN cmake -DCMAKE_BUILD_TYPE=MinSizeRel .
61- RUN make -j8
53+ RUN echo "Building Software-Analysis-Studio ..."
54+ RUN sed -i 's/lldb/gdb/g' ${HOME}/Software-Analysis-Studio /.vscode/launch.json
55+ RUN cmake -DCMAKE_BUILD_TYPE=Debug .
56+ RUN make -j8
0 commit comments