This commit is contained in:
Tech0ne 2025-07-18 09:43:20 +02:00 committed by GitHub
commit 4efc17bf91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 86 additions and 0 deletions

43
docker/Dockerfile.client Normal file
View file

@ -0,0 +1,43 @@
##############
#
# @
# @
# @ @ @
#
##############
FROM ubuntu:24.04
RUN apt-get update
RUN apt-get install -y \
gcc \
git \
libz-dev \
make \
pkg-config
RUN apt-get clean
WORKDIR /app/
COPY . /app/
RUN make
# build command (at repo root): [sudo] docker build -t iodine -f docker/Dockerfile.client .
# 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 \
# --device /dev/net/tun \
# --cap-add=NET_ADMIN \
# iodine -f -r 192.168.0.1 -P "password" test.com
FROM ubuntu:24.04
COPY --from=0 /app/bin/iodine /iodine
ENTRYPOINT [ "/iodine" ]
CMD [ "-h" ]

43
docker/Dockerfile.server Normal file
View file

@ -0,0 +1,43 @@
##############
#
# @
# @
# @ @ @
#
##############
FROM ubuntu:24.04
RUN apt-get update
RUN apt-get install -y \
gcc \
git \
libz-dev \
make \
pkg-config
RUN apt-get clean
WORKDIR /app/
COPY . /app/
RUN make
# build command (at repo root): [sudo] docker build -t iodined -f docker/Dockerfile.server .
# 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 \
# --device /dev/net/tun \
# --cap-add=NET_ADMIN \
# iodined -f 10.0.0.1 -P "password" test.com
FROM ubuntu:24.04
COPY --from=0 /app/bin/iodined /iodined
ENTRYPOINT [ "/iodined" ]
CMD [ "-h" ]