add image for raspeberry

This commit is contained in:
mkelcik
2023-04-29 15:04:59 +02:00
parent c7dbb77a63
commit ac2965c89c

View File

@@ -4,8 +4,13 @@ FROM golang:1.20 as build
COPY . /opt/project/
WORKDIR /opt/project
RUN apt update
RUN apt-get install -y ca-certificates
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /cloudflare-ddns-updater
FROM scratch
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=build /cloudflare-ddns-updater /cloudflare-ddns-updater
ENTRYPOINT ["/cloudflare-ddns-updater"]
CMD ["cloudflare-ddns-updater"]