dockerfiles/mop/Dockerfile
Jess Frazelle 605c033953
cleanup mop
Signed-off-by: Jess Frazelle <me@jessfraz.com>
2016-09-12 11:26:36 -07:00

33 lines
539 B
Docker

# Run mop-tracker in a container
#
# docker run -it --rm \
# -v ~/.moprc:/root/.moprc \
# --name mop \
# r.j3ss.co/mop
#
FROM alpine:edge
RUN apk --no-cache add \
ca-certificates
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN buildDeps=' \
go \
git \
gcc \
g++ \
libc-dev \
libgcc \
' \
set -x \
&& apk --no-cache add $buildDeps \
&& go get github.com/mop-tracker/mop/cmd/mop \
&& mv /go/bin/mop /usr/bin/mop \
&& apk del $buildDeps \
&& rm -rf /go \
&& echo "Build complete."
ENTRYPOINT [ "mop" ]