TheArrayser
54607a527c
All checks were successful
Build and push container / Build-Docker-Container (push) Successful in 3m35s
18 lines
235 B
Docker
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" ] |