Commit 84d9505c authored by 神楽坂玲奈's avatar 神楽坂玲奈

new

parent bec54710
Pipeline #16680 passed with stages
in 1 minute and 43 seconds
...@@ -7,9 +7,8 @@ COPY src src ...@@ -7,9 +7,8 @@ COPY src src
RUN cmake -DCMAKE_BUILD_TYPE=Release . && cmake --build . RUN cmake -DCMAKE_BUILD_TYPE=Release . && cmake --build .
FROM alpine:3.16 FROM alpine:3.16
RUN apk --no-cache add libgcc libstdc++ bash iproute2 iptables ipset netcat-openbsd RUN apk --no-cache add libgcc libstdc++ bash iproute2 iptables ipset netcat-openbsd jq
COPY --from=builder /usr/src/app/tun /usr/local/bin/ COPY --from=builder /usr/src/app/tun /usr/local/bin/
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["tun"] ENTRYPOINT ["./entrypoint.sh"]
#CMD ["tun"]
...@@ -18,7 +18,7 @@ run_stop() { ...@@ -18,7 +18,7 @@ run_stop() {
trap 'kill ${!}; run_stop 2' SIGTERM trap 'kill ${!}; run_stop 2' SIGTERM
trap 'kill ${!}; run_stop 15' SIGINT trap 'kill ${!}; run_stop 15' SIGINT
"$@" & tun "$@" &
pid="$!" pid="$!"
# wait forever # wait forever
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment