Support STATIC and LIBSTATIC in Makefile's, fix dockerfiles

This commit is contained in:
Vladimir Dubrovin committed 2026-05-27 17:04:34 +03:00
1 parent 905e3d3152
commit d66311a045
7 files changed
+69 -51

No files matched your search

+2 -4
View File
@@ -6,7 +6,7 @@
# This is busybox based docker with only 3proxy static executable.
#
# Limitations for minimal version:
# no support for plugins, IPv6, RADIUS, system resolver.
# no support for plugins and system resolver.
# 'nserver' or 'fakeresolve' are mandatory in configuration.
#
# Build:
@@ -28,9 +28,7 @@
FROM docker.io/gcc AS buildenv
COPY . 3proxy
RUN cd 3proxy &&\
export "LDFLAGS=-static" &&\
export "CFLAGS=-DNOPLUGINS -DNORADIUS -DNOIPV6 -DNOODBC -DNOCRYPT -DNOSTDRESOLVE" &&\
make -f Makefile.Linux PLUGINS= LIBS= &&\
make -f Makefile.Linux STATIC=true &&\
strip bin/3proxy
FROM scratch