Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions site/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
FROM golang as builder
FROM docker.io/golang:1.17.8-bullseye as builder

WORKDIR /build
COPY go.mod go.sum *.go .
#RUN go mod tidy
COPY go.mod go.sum *.go .
RUN go mod tidy
RUN CGO_ENABLED=0 GOOS=linux go build -a -o letmein2 .

FROM alpine:latest
FROM alpine:3.15.0

COPY --from=builder /build/letmein2 .
COPY ./templates ./templates
COPY ./static ./static
ENV GOOGLE_APPLICATION_CREDENTIALS=/static/coral-antonym-327500-492da8519a6c.json
ENTRYPOINT ["./letmein2"]
3 changes: 2 additions & 1 deletion site/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
)

require (
cloud.google.com/go/recaptchaenterprise v1.3.0
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.0 // indirect
github.com/go-playground/universal-translator v0.18.0 // indirect
Expand All @@ -21,9 +22,9 @@ require (
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/ugorji/go/codec v1.2.7 // indirect
golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2 // indirect
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading