From 876cb95d509bd15d2686596d8d679599af2dc5e4 Mon Sep 17 00:00:00 2001 From: groot Date: Thu, 9 Jan 2025 07:07:49 +0000 Subject: [PATCH] =?UTF-8?q?Dockerfile=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile 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