mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-06-21 02:10:10 +00:00
16 lines
329 B
Docker
Executable File
16 lines
329 B
Docker
Executable File
# Base
|
|
FROM golang:1.20.3-alpine AS builder
|
|
|
|
RUN apk add --no-cache build-base
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN go mod download
|
|
RUN go build ./cmd/dnsx
|
|
|
|
# Release
|
|
FROM alpine:3.17.3
|
|
RUN apk -U upgrade --no-cache \
|
|
&& apk add --no-cache bind-tools ca-certificates
|
|
COPY --from=builder /app/dnsx /usr/local/bin/
|
|
|
|
ENTRYPOINT ["dnsx"] |