This commit is contained in:
mkelcik
2023-04-28 14:57:21 +02:00
parent 531b3fba51
commit ec9ca7183c
7 changed files with 270 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM golang:1.20 as build
# Copy project sources
COPY . /opt/project/
WORKDIR /opt/project
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /cloudflare-ddns-updater
FROM scratch
COPY --from=build /cloudflare-ddns-updater /cloudflare-ddns-updater
ENTRYPOINT ["/cloudflare-ddns-updater"]