slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
18.68k stars 694 forks source link

not found in PATH #176

Open macosupdate opened 3 years ago

macosupdate commented 3 years ago

This is a great tool, I use it a lot in production. With web apps I use it very well. But for non-web applications I sometimes get errors. This is an application I built with no success I use this repo to build docker https://github.com/evait-security/docker-multitor

This is the command I use build --target multitor:latest --http-probe false --include-path /lib/ld-musl-x86_64.so.1 --include-path /lib/libz.so.1 --include-path /usr/lib/libpcre.so.1 --include-path /usr/lib/libpcreposix.so.0 --include-path /lib/libssl.so.1.1 --include-path /lib/libcrypto.so.1.1 --include-path /usr/lib/liblua-5.3.so.0 --include-path /usr/lib/libevent-2.1.so.7 --include-path /usr/lib/liblzma.so.5 --include-path /usr/lib/libzstd.so.1 --include-path /lib/libprocps.so.8 --include-path /usr/lib/libbrotlienc.so.1 --include-path /usr/lib/libcares.so.2 --include-path /usr/lib/libnghttp2.so.14 --include-path /usr/lib/libstdc++.so.6 --include-path /usr/lib/libgcc_s.so.1 --include-path /lib/ld-musl-x86_64.so.1 --include-path /usr/lib/libbrotlicommon.so.1 --include-path /usr/lib/libintl.so.8 --include-path /var/lib/multitor --include-path /multitor --include-bin /usr/sbin/privoxy --include-bin /usr/sbin/haproxy --include-bin /usr/bin/tor --include-bin /usr/bin/nc --include-bin /usr/local/bin/polipo --include-bin /usr/local/bin/multitor --include-bin /usr/bin/hpts --include-bin /bin/ps --include-bin /usr/bin/node --include-bin /usr/bin/npm --workdir /multitor --cmd './startup.sh'

When the build is finished I run docker and get an error not found in PATH: sudo hpts

kcq commented 3 years ago

working on a repro... it's a pretty cool project though the loosely coupled collection of processes and lots of shell scripts makes it fun :)