Small Telegram bot, which rules «Night Zoo»
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.

20 lines
468B

  1. FROM golang:1.13 AS builder
  2. COPY . /build/
  3. WORKDIR /build/
  4. RUN apt-get update && apt-get -y install ca-certificates
  5. RUN CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOFLAGS='-mod=vendor' go build -tags netgo -ldflags '-w -extldflags "-static"'
  6. FROM scratch
  7. COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
  8. COPY --from=builder /build/fwzookeeper /usr/local/bin/fwzookeeper
  9. VOLUME ["/data"]
  10. EXPOSE 6000
  11. ENTRYPOINT [ "/usr/local/bin/fwzookeeper" ]