Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions docker/Dockerfile.client
Original file line number Diff line number Diff line change
@@ -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 changes: 43 additions & 0 deletions docker/Dockerfile.server
Original file line number Diff line number Diff line change
@@ -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" ]