Initial commit: Go DNS microservice boilerplate

This commit is contained in:
Aiden Smith
2026-02-24 13:44:34 -05:00
commit 247f81d616
13 changed files with 451 additions and 0 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM golang:1.23-alpine AS build
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o server ./cmd/server
FROM alpine:3.20
RUN apk add --no-cache ca-certificates
COPY --from=build /app/server /usr/local/bin/server
EXPOSE 8080
CMD ["server"]