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
RUN cmake -DCMAKE_BUILD_TYPE=Release . && cmake --build .
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 ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["tun"]
#CMD ["tun"]
ENTRYPOINT ["./entrypoint.sh"]
......@@ -18,7 +18,7 @@ run_stop() {
trap 'kill ${!}; run_stop 2' SIGTERM
trap 'kill ${!}; run_stop 15' SIGINT
"$@" &
tun "$@" &
pid="$!"
# 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