dnstp/Dockerfile
Andy Pack 96035ba819
Some checks failed
Build Binaries / Build & Test (push) Failing after 54s
Build Binaries / Package Library (push) Has been skipped
Build Binaries / Package Container (push) Has been skipped
adding lib publish
2024-07-28 10:45:40 +01:00

17 lines
299 B
Docker

FROM rust:1.78.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"]