blob: 5cc27a96166ef13828c3c554d11ee2adc0051b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
FROM golang:1.15
WORKDIR /root
COPY . ./
ENV CGO_ENABLED=0
RUN go build ./cmd/go-import-redirect
FROM scratch
COPY --from=0 /root/go-import-redirect /go-import-redirect
EXPOSE 8080
ENTRYPOINT ["/go-import-redirect"]
|