-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
29 lines (23 loc) · 1.26 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# temporary builder image for wireguard tools
# - need coherent system version with base image
# - may need update for properly compiling boringtun
# - 2023-05: `bookworm` is not officially released, stick to `bullseye` for now
FROM debian:bullseye-slim as builder
RUN apt-get update && apt-get install -y git build-essential curl
# install boringtun userspace implementation of wireguard
#
# - match versions of debian & boringtun : up to date 0.5.2 compiles ok for bullseye, but could not have it working
# Continue with 0.4.0
# - glitch: bullseye's apt-get cargo is too old vs boringtun's cargo packages dependencies, need to install
# up to date rust/cargo
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && . /root/.cargo/env && \
cargo install --locked --bin boringtun --version ~0.4.0 boringtun
# install needed wireguard-tools
RUN apt-get install -y wireguard-tools
# docker base image for VPN server, Fed-BioMed node and researcher
# - need proper python version for Fed-BioMed
FROM python:3.10-slim-bullseye
RUN apt-get update && apt-get install -y iptables iproute2 iputils-ping bash vim net-tools procps build-essential kmod
# get wireguard from builder image
COPY --from=builder /root/.cargo/bin/boringtun /usr/bin/
COPY --from=builder /usr/bin/wg* /usr/bin/