feat: added docker support for both iodined (Dockerfile.server) and iodine (Dockerfile.client)

This commit is contained in:
Tech0ne 2025-06-23 15:12:53 +02:00
parent 63c386d0f8
commit 8d94c7ba74
2 changed files with 62 additions and 0 deletions

31
Dockerfile.client Normal file
View file

@ -0,0 +1,31 @@
##############
#
# @
# @
# @ @ @
#
##############
FROM alpine:3.22.0
RUN apk update
RUN apk add --no-cache \
gcc \
git \
make \
pkgconfig \
zlib-dev
WORKDIR /app/
RUN git clone https://github.com/yarrick/iodine /app/
RUN make
# iodine require /dev/net/tun from the host.
# run the container with --device /dev/net/tun --cap-add=NET_ADMIN to allow it
# usage: [sudo] docker run -it --rm iodine -f -r 192.168.0.1 -P "password" test.com
ENTRYPOINT [ "/app/bin/iodine" ]
CMD [ "-h" ]

31
Dockerfile.server Normal file
View file

@ -0,0 +1,31 @@
##############
#
# @
# @
# @ @ @
#
##############
FROM alpine:3.22.0
RUN apk update
RUN apk add --no-cache \
gcc \
git \
make \
pkgconfig \
zlib-dev
WORKDIR /app/
RUN git clone https://github.com/yarrick/iodine /app/
RUN make
# iodine require /dev/net/tun from the host.
# run the container with --device /dev/net/tun --cap-add=NET_ADMIN to allow it
# usage: [sudo] docker run -it --rm iodined -f 10.0.0.1 -P "password" test.com
ENTRYPOINT [ "/app/bin/iodined" ]
CMD [ "-h" ]