|
|
|
|
@ -21,11 +21,14 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
|
|
|
|
|
echo $TZ > /etc/timezone && \
|
|
|
|
|
pacman -Syu --noconfirm && \
|
|
|
|
|
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
|
|
|
|
|
pacman -S --noconfirm vim git && \
|
|
|
|
|
pacman -S --noconfirm vim && \
|
|
|
|
|
pacman -Scc --noconfirm
|
|
|
|
|
|
|
|
|
|
ADD . /pwndbg/
|
|
|
|
|
RUN git submodule update --init --recursive
|
|
|
|
|
ADD ./setup.sh /pwndbg/
|
|
|
|
|
ADD ./pyproject.toml /pwndbg/
|
|
|
|
|
ADD ./poetry.lock /pwndbg/
|
|
|
|
|
ADD ./dev-requirements.txt /pwndbg/
|
|
|
|
|
RUN touch README.md && mkdir pwndbg && touch pwndbg/empty.py && mkdir gdb-pt-dump && touch gdb-pt-dump/empty.py
|
|
|
|
|
|
|
|
|
|
# The `git submodule` is commented because it refreshes all the sub-modules in the project
|
|
|
|
|
# but at this time we only need the essentials for the set up. It will execute at the end.
|
|
|
|
|
@ -40,3 +43,7 @@ RUN echo "source /pwndbg/gdbinit.py" >> ~/.gdbinit.py && \
|
|
|
|
|
echo "PYTHON_MINOR=$(python3 -c "import sys;print(sys.version_info.minor)")" >> /root/.bashrc && \
|
|
|
|
|
echo "PYTHON_PATH=\"/usr/local/lib/python3.${PYTHON_MINOR}/dist-packages/bin\"" >> /root/.bashrc && \
|
|
|
|
|
echo "export PATH=$PATH:$PYTHON_PATH" >> /root/.bashrc
|
|
|
|
|
|
|
|
|
|
ADD . /pwndbg/
|
|
|
|
|
|
|
|
|
|
RUN git submodule update --init --recursive
|
|
|
|
|
|