You've already forked ddns-updater
Merge pull request #2 from mkelcik/fix_dockerfile_cert
Fix dockerfile cert
This commit is contained in:
@@ -4,8 +4,12 @@ FROM golang:1.20 as build
|
|||||||
COPY . /opt/project/
|
COPY . /opt/project/
|
||||||
WORKDIR /opt/project
|
WORKDIR /opt/project
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /cloudflare-ddns-updater
|
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o /cloudflare-ddns-updater
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||||
COPY --from=build /cloudflare-ddns-updater /cloudflare-ddns-updater
|
COPY --from=build /cloudflare-ddns-updater /cloudflare-ddns-updater
|
||||||
ENTRYPOINT ["/cloudflare-ddns-updater"]
|
ENTRYPOINT ["/cloudflare-ddns-updater"]
|
||||||
|
CMD ["cloudflare-ddns-updater"]
|
||||||
Reference in New Issue
Block a user