This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
veil/Containerfile
Nikolaos Karaolidis 4f0f8ddbe1 feat: add scafolding
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-03-28 14:36:37 +00:00

28 lines
620 B
Docker

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"]