diff --git a/Dockerfile b/Dockerfile index 9b33f275..e977048c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM golang:1.17-bullseye AS builder +FROM golang:1.19-bullseye AS builder WORKDIR /workdir COPY go.mod go.sum /workdir -RUN GOPROXY=https://proxy.golang.org,direct go mod download +ENV GOPROXY=https://proxy.golang.org,direct +RUN go mod download COPY . /workdir -WORKDIR /workdir -RUN cd casket && go mod init casket \ - && GOPROXY=https://proxy.golang.org,direct GOPRIVATE=github.com/tmpim/casket go get "github.com/tmpim/casket@master" \ - && go mod tidy && CGO_ENABLED=0 go build -o casket . +WORKDIR /workdir/casket +RUN CGO_ENABLED=0 go build -o casket . FROM alpine:3 @@ -33,4 +32,4 @@ WORKDIR /config COPY --from=builder /workdir/casket/casket /usr/bin/casket -ENTRYPOINT ["/usr/bin/casket", "-agree", "-root", "/www"] +ENTRYPOINT ["/usr/bin/casket", "-agree", "-root", "/www"] \ No newline at end of file diff --git a/go.mod b/go.mod index 236ece68..7881fdf2 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/rakyll/statik v0.1.7 github.com/russross/blackfriday v1.6.0 github.com/tmpim/casket-plugins v0.0.4-0.20210411234607-8b023eeb664d - github.com/tmpim/dnsproviders v0.4.2 + github.com/tmpim/dnsproviders v0.5.0 go.uber.org/zap v1.26.0 golang.org/x/net v0.20.0 gopkg.in/mcuadros/go-syslog.v2 v2.3.0 diff --git a/go.sum b/go.sum index 1b9c62e6..97a90315 100644 --- a/go.sum +++ b/go.sum @@ -1081,6 +1081,9 @@ github.com/tmpim/casket-plugins v0.0.1/go.mod h1:f45dVU7faCB1NJNuMJBBVHCWxNHXZld github.com/tmpim/casket-plugins v0.0.4-0.20210411234607-8b023eeb664d h1:vn0yn5M2UVIz2VVPkFio8EEi9EJSj6dvx28+GuWAqYA= github.com/tmpim/casket-plugins v0.0.4-0.20210411234607-8b023eeb664d/go.mod h1:RYBOo9WtK3LmyjGZVzEm1ptZV9uvPprzvz0V6i9qyuI= github.com/tmpim/certmagic v0.12.4/go.mod h1:GrjIQ+gs5GW+jmqRkOnfoBjIiuk12VV4zbxoWBs8lQc= +github.com/tmpim/dnsproviders v0.4.2/go.mod h1:QNqmtAefbbf/2BYM2hhVHaFglA584r3ayGps32Gu/c8= +github.com/tmpim/dnsproviders v0.5.0 h1:z5ydcQ0VsCmU17z5mXHCpRO2t5QQ+yO5JK+w2Dxkze4= +github.com/tmpim/dnsproviders v0.5.0/go.mod h1:zkCzZdk+AyPRrEvTim3Ob7ED/3WZAIdnSvpSAv8voes= github.com/transip/gotransip v0.0.0-20190812104329-6d8d9179b66f/go.mod h1:i0f4R4o2HM0m3DZYQWsj6/MEowD57VzoH0v3d7igeFY= github.com/transip/gotransip/v6 v6.2.0/go.mod h1:pQZ36hWWRahCUXkFWlx9Hs711gLd8J4qdgLdRzmtY+g= github.com/transip/gotransip/v6 v6.6.1/go.mod h1:pQZ36hWWRahCUXkFWlx9Hs711gLd8J4qdgLdRzmtY+g=