mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-06-21 10:20:40 +00:00
16 lines
329 B
Docker
16 lines
329 B
Docker
![]() |
# 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"]
|