# dockerfile for "interactive" minimal 3proxy execution, no configuration mounting is required, configuration # is accepted from stdin. Use "end" command to indicate the end of configuration. Use "log" for stdout logging. # # This is busybox based docker with only 3proxy static executable and empty non-writable "run" directory. # # "plugin" is not supported # # Build: # # docker build -f Dockerfile.minimal -t 3proxy.minimal . # # Run example: # # docker run -i -p 3129:3129 --name 3proxy 3proxy.minimal #or # docker start -i 3proxy #>Makefile.Linux &&\ echo LDFLAGS = -fPIC -O2 -fno-strict-aliasing -pthread >>Makefile.Linux &&\ echo PLUGINS = >>Makefile.Linux &&\ echo LIBS = >>Makefile.Linux &&\ echo CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER -DNOPLUGINS >>Makefile.Linux &&\ make -f Makefile.Linux &&\ strip bin/3proxy FROM busybox:glibc COPY --from=buildenv 3proxy/bin/3proxy /bin/3proxy RUN mkdir /run && chmod 555 /run CMD ["/bin/3proxy"]