Skip to content
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (17 sloc) 528 Bytes
FROM golang:1.12.0-alpine as builder
LABEL maintainer="Antonio Mika <>"
RUN apk add --no-cache git gcc musl-dev
ENV GOCACHE /gocache
WORKDIR /usr/local/go/src/
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go install
RUN go test -i ./...
FROM alpine
LABEL maintainer="Antonio Mika <>"
COPY --from=builder /usr/local/go/src/ /sish
COPY --from=builder /go/bin/sish /sish/sish
ENTRYPOINT ["/sish/sish"]
You can’t perform that action at this time.