docker-doh-proxy/Dockerfile

21 lines
323 B
Docker
Raw Permalink Normal View History

2023-02-28 17:29:23 +00:00
FROM rust:1-alpine as build
# sys deps
RUN apk add --no-cache musl-dev libc-dev
# cache index
RUN cargo search doh-proxy
RUN cargo install doh-proxy --no-default-features
# -----------
FROM busybox:1-musl
COPY --from=build /usr/local/cargo/bin/doh-proxy /usr/local/bin/doh-proxy
EXPOSE 3000/tcp
CMD ["doh-proxy"]