Skip to content

Commit 079026d

Browse files
author
bjjwwang
committed
fix dockerfile
1 parent 12e8aff commit 079026d

File tree

1 file changed

+11
-16
lines changed

1 file changed

+11
-16
lines changed

Dockerfile

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,22 @@ ENV build_deps="wget xz-utils git gdb tcl software-properties-common"
2121
RUN apt-get update --fix-missing
2222
RUN 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
2525
RUN add-apt-repository ppa:deadsnakes/ppa
2626
RUN apt-get update
2727
RUN 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.
3934
RUN echo "Downloading LLVM and building SVF to " ${HOME}
4035
WORKDIR ${HOME}
4136
RUN git clone "https://github.com/SVF-tools/SVF.git"
4237
WORKDIR ${HOME}/SVF
4338
RUN echo "Building SVF ..."
44-
RUN bash ./build.sh
39+
RUN bash ./build.sh debug
4540

4641
# Export SVF, llvm, z3 paths
4742
ENV PATH=${HOME}/SVF/Release-build/bin:$PATH
@@ -51,11 +46,11 @@ ENV LLVM_DIR=${HOME}/SVF/llvm-$llvm_version.obj
5146
ENV Z3_DIR=${HOME}/SVF/z3.obj
5247
RUN 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
5550
WORKDIR ${HOME}
5651
RUN git clone "https://github.com/SVF-tools/Software-Analysis-Studio.git"
5752
WORKDIR ${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

Comments
 (0)