CHG reduce unused packages in theia-xv6
@@ -6,23 +6,19 @@ USER root
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
- gdb git build-essential cmake \
+ gdb git make cmake \
gcc-multilib g++-multilib libc6-dev \
- clangd \
- qemu-system-i386; \
- echo 'set auto-load safe-path /' > /etc/skel/.gdbinit; \
- echo 'source /opt/pwndbg/gdbinit.py' >> /etc/skel/.gdbinit; \
+ clangd qemu-system-i386; \
+ echo 'set auto-load safe-path /' > /etc/anubis/skel/.gdbinit; \
+ echo 'source /opt/pwndbg/gdbinit.py' >> /etc/anubis/skel/.gdbinit; \
git clone https://github.com/pwndbg/pwndbg.git /opt/pwndbg; \
- cd /opt/pwndbg; \
- ./setup.sh; \
+ pip3 install --no-cache-dir -r /opt/pwndbg/requirements.txt; \
rm -rf /tmp/*; \
rm -rf /usr/share/doc; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /home/node/*; \
find / -depth \
\( -name .cache -o -name __pycache__ -o -name '*.pyc' -o -name .git -o -name .github \) \
- -exec 'rm' '-rf' '{}' '+'; \
- echo 'set auto-load safe-path /' > /etc/skel/.gdbinit; \
- echo 'source /opt/pwndbg/gdbinit.py' >> /etc/skel/.gdbinit;
+ -exec 'rm' '-rf' '{}' '+';
USER anubis
\ No newline at end of file
