Files
rdns-go/Dockerfile
tchivert c4eb798fa3
build / build (push) Failing after 4m51s
switched from env vars to command
2025-07-11 23:53:11 +02:00

22 lines
274 B
Docker

FROM golang AS build
WORKDIR /
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o rdns .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=build /rdns ./
ENTRYPOINT ["/app/rdns"]