feat: add scafolding

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-03-27 11:07:54 +00:00
parent 0e141eebae
commit 4f0f8ddbe1
15 changed files with 4648 additions and 100 deletions

27
Containerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM docker.io/library/rust AS builder
RUN apt-get update && apt-get install -y musl-tools && apt-get clean
RUN rustup target add x86_64-unknown-linux-musl
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo fetch
RUN rm -rf src
COPY src ./src
RUN cargo build --target=x86_64-unknown-linux-musl --release
FROM docker.io/library/alpine
RUN apk add --no-cache wireguard-tools iptables
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/veil /usr/local/bin/veil
EXPOSE 51820/udp
EXPOSE 51821/tcp
ENTRYPOINT ["/usr/local/bin/veil"]
CMD ["--help"]