diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..54721e5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM golang:1.23.3 +WORKDIR /app +COPY go.mod go.sum ./ +RUN go mod download +COPY *.go ./ +RUN CGO_ENABLED=0 GOOS=linux go build -o /go-ddns +EXPOSE 8080 +CMD ["/go-ddns"] \ No newline at end of file