Commit 1080a8d3 authored by 神楽坂玲奈's avatar 神楽坂玲奈

debug

parent 78b58ebc
Pipeline #15690 passed with stages
in 1 minute and 23 seconds
......@@ -7,7 +7,6 @@ add_executable(tun src/main.cpp)
set(CMAKE_CXX_FLAGS_DEBUG -ggdb)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(tun Threads::Threads)
......
......@@ -2,13 +2,15 @@ FROM alpine AS builder
RUN apk --no-cache add build-base cmake linux-headers boost-dev boost-static
WORKDIR /usr/src/app
COPY . .
COPY CMakeLists.txt .
COPY src src
RUN cmake -DCMAKE_BUILD_TYPE=Debug .
RUN make
FROM alpine
RUN apk --no-cache add libgcc libstdc++ bash iproute2 iptables ipset netcat-openbsd
COPY --from=builder /usr/src/app/tun .
COPY --from=builder /usr/src/app/tun /usr/local/bin/
COPY ./entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["tun"]
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