dnstp/Dockerfile

17 lines
299 B
Docker
Raw Permalink Normal View History

2024-07-28 10:45:40 +01:00
FROM rust:1.78.0-alpine3.19 as build
2024-02-02 20:12:23 +00:00
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"]