Skip to content
Permalink
0527d30bde
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (11 sloc) 336 Bytes
FROM golang:1.14.1-alpine as builder
ENV GOOS=linux \
GOARCH=386 \
CGO_ENABLED=0
#RUN apk --no-cache add gcc g++ make ca-certificates && apk add git
WORKDIR /go/src/app
ADD . /go/src/app
RUN go mod download && go build -o /go/bin/app
FROM gcr.io/distroless/base-debian10
COPY --from=builder /go/bin/app /
ENTRYPOINT ["/app"]