penguin/tinyproxy

An L4 proxy designed to act as a tiny transparent shim

commit a5dd8a3c95fd5c8edb2010246ef90e4717f2141b

author斟酌 鵬兄 <tgckpg@gmail.com>
date2026-05-28T02:30:23Z
subjectFixed Dockerfile
commit a5dd8a3c95fd5c8edb2010246ef90e4717f2141b
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2026-05-28T02:30:23Z

    Fixed Dockerfile
---
 Dockerfile      | 7 ++++---
 src/tinyproxy.c | 1 +
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 1c270c3..a63b63a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,6 +7,7 @@ RUN mkdir /build
 WORKDIR /build
 
 COPY [ "*.conf", "Makefile", "/build" ]
+COPY ./mk /build/mk
 COPY ./src /build/src
 
 RUN make all STATIC=1
@@ -17,12 +18,12 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
 COPY tests ./tests
 RUN make test STATIC=1
 
-RUN cp /src/tinyproxy.conf /etc/ && cp /src/bin/tinyproxy /usr/bin/
+RUN cp /build/tinyproxy.conf /etc/ && cp /build/bin/tinyproxy /usr/bin/
 
 FROM scratch
 
-COPY --from=build /src/bin/tinyproxy /usr/bin/tinyproxy
-COPY --from=build /src/tinyproxy.conf /etc/tinyproxy.conf
+COPY --from=build /build/bin/tinyproxy /usr/bin/tinyproxy
+COPY --from=build /build/tinyproxy.conf /etc/tinyproxy.conf
 
 ENTRYPOINT ["/usr/bin/tinyproxy"]
 CMD ["-c", "/etc/tinyproxy.conf"]
diff --git a/src/tinyproxy.c b/src/tinyproxy.c
index 3e3a00f..3f2e341 100644
--- a/src/tinyproxy.c
+++ b/src/tinyproxy.c
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <signal.h>
 
 #include "klog.h"
 #include "signals.h"