blob: e3b9074c03587bcdf88b6bd39f31913686b640ed [file] [log] [blame]
FROM alpine:latest
MAINTAINER Jessica Frazelle <jess@linux.com>
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk add --no-cache \
ca-certificates
COPY . /go/src/github.com/jessfraz/bane
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
go \
git \
gcc \
libc-dev \
libgcc \
&& cd /go/src/github.com/jessfraz/bane \
&& go build -o /usr/bin/bane . \
&& apk del .build-deps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "bane" ]