go
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.
 
 
 

15 lines
228 B

  1. FROM golang:1.14-alpine
  2. RUN apk update && apk add gcc alpine-sdk
  3. WORKDIR /build
  4. COPY . .
  5. RUN go build -mod=vendor
  6. FROM alpine
  7. COPY --from=0 /build/ip-blocker-db /usr/bin/ip-blocker-db
  8. ENTRYPOINT ["/usr/bin/ip-blocker-db"]