mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
Support STATIC and LIBSTATIC in Makefile's, fix dockerfiles
This commit is contained in:
1 parent
905e3d3152
commit
d66311a045
7 files changed
+69
-51
No files matched your search
+2
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user