Public Internet facing gateway (TCP reverse tunnel) for greenhouse 🏔️⛰️🛤️⛰️🏔️
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
716 B

  1. FROM golang:1.15.2-alpine as build
  2. ARG GOARCH=
  3. ARG GO_BUILD_ARGS=
  4. # Threshold has its own certificates -- it doesn't need the public internet ones
  5. # RUN apk add --update --no-cache ca-certificates git
  6. RUN mkdir /build
  7. WORKDIR /build
  8. COPY . .
  9. RUN go build -v $GO_BUILD_ARGS -o /build/threshold main.go
  10. FROM alpine
  11. WORKDIR /threshold
  12. # COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
  13. COPY --from=build /build/threshold /threshold/threshold
  14. RUN mkdir -p /threshold/config
  15. # NOTE: the user will have to mount the config file & any required TLS certs/keys into /opt/threshold/
  16. # as well as override the default command (-mode server)
  17. ENTRYPOINT ["/threshold/threshold"]
  18. CMD ["-mode", "server"]