Skip to content

Commit

Permalink
chore: clean up Dockerfile, dnsproviders 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lemmmy committed Feb 1, 2024
1 parent 7487e09 commit ceb8a7c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit ceb8a7c

Please sign in to comment.