Skip to content
Permalink
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 <me@antoniomika.me>"
RUN apk add --no-cache git gcc musl-dev
ENV GOCACHE /gocache
WORKDIR /usr/local/go/src/github.com/antoniomika/sish
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
RUN go install
RUN go test -i ./...
FROM alpine
LABEL maintainer="Antonio Mika <me@antoniomika.me>"
COPY --from=builder /usr/local/go/src/github.com/antoniomika/sish /sish
COPY --from=builder /go/bin/sish /sish/sish
WORKDIR /sish
ENTRYPOINT ["/sish/sish"]
You can’t perform that action at this time.