dnstp/Dockerfile

17 lines
299 B
Docker
Raw Normal View History

2024-02-02 20:12:23 +00:00
FROM rust:1.75.0-alpine3.19 as build
RUN apk add --no-cache musl-dev
COPY . /dnstp/
WORKDIR /dnstp
RUN cargo build --release
FROM alpine:3.19
COPY --from=build /dnstp/target/release/dnstp /dnstp/dnstp
WORKDIR /dnstp
EXPOSE 5353/udp
ENTRYPOINT ["/dnstp/dnstp"]
CMD ["--address", "0.0.0.0:5353"]