Commit 78b58ebc authored by 神楽坂玲奈's avatar 神楽坂玲奈

debug

parent 51bb1fb9
Pipeline #15689 passed with stages
in 1 minute and 29 seconds
FROM debian:bookworm-slim as builder
FROM alpine AS builder
RUN apk --no-cache add build-base cmake linux-headers boost-dev boost-static
WORKDIR /usr/src/app
RUN apt update && apt -y install \
build-essential cmake libboost-dev \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/* /var/cache/*
COPY CMakeLists.txt .
COPY src src
COPY . .
RUN cmake -DCMAKE_BUILD_TYPE=Debug .
RUN make
FROM debian:bookworm-slim
RUN apt update && apt -y install \
iproute2 iptables ipset netcat-openbsd binutils gdb \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/* /var/cache/*
COPY --from=builder /usr/src/app/tun /usr/local/bin/
COPY ./entrypoint.sh /entrypoint.sh
FROM alpine
RUN apk --no-cache add libgcc libstdc++ bash iproute2 iptables ipset netcat-openbsd
COPY --from=builder /usr/src/app/tun .
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