mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-02-27 22:13:12 -08:00
19 lines
420 B
Docker
19 lines
420 B
Docker
FROM rust:slim as build
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
build-essential \
|
|
cmake \
|
|
pkg-config \
|
|
libclang-dev \
|
|
libsodium-dev
|
|
|
|
WORKDIR /code
|
|
COPY . /code
|
|
|
|
RUN cargo install --path rosenpass --root / --bins \
|
|
&& cargo install --path wireguard-broker --root / --bins
|
|
# RUN apt-get install -y libcap2-bin \
|
|
# setcap CAP_NET_ADMIN=+eip "$(which rosenpass-wireguard-broker-privileged)"
|
|
|
|
CMD rosenpass
|