Naive implementation that always return min value

This commit is contained in:
2019-12-27 15:38:12 +01:00
parent 6da3e5cd02
commit 83056fb0f1
72 changed files with 8284 additions and 0 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM --platform=$BUILDPLATFORM golang:alpine AS builder
ARG TARGETPLATFORM
ARG BUILDPLATFORM
WORKDIR /go/src
ADD . .
RUN GOOS=$(echo $TARGETPLATFORM | cut -f1 -d/) && \
GOARCH=$(echo $TARGETPLATFORM | cut -f2 -d/) && \
GOARM=$(echo $TARGETPLATFORM | cut -f3 -d/ | sed "s/v//" ) && \
CGO_ENABLED=0 GOOS=${GOOS} GOARCH=${GOARCH} GOARM=${GOARM} go build -mod vendor -tags netgo ./cmd/rc-throttle/
FROM gcr.io/distroless/static
USER 1234
COPY --from=builder /go/src/rc-throttle /go/bin/rc-throttle
ENTRYPOINT ["/go/bin/rc-throttle"]