dns/docker/Dockerfile
TheArrayser 54607a527c
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 3m35s
add docker and workflow
2025-01-11 23:11:39 +00:00

18 lines
235 B
Docker

FROM golang:1.23-alpine AS builder
COPY . /workspace
WORKDIR /workspace
RUN go build -ldflags "-s -w" .
FROM alpine:latest
COPY --from=builder /workspace/dns /usr/local/bin/dns
WORKDIR /dns
ENTRYPOINT [ "/usr/local/bin/dns" ]