dockerfiles/mop/Dockerfile

33 lines
541 B
Docker
Raw Permalink Normal View History

2016-09-12 13:58:14 +02:00
# Run mop-tracker in a container
#
# docker run -it --rm \
# -v ~/.moprc:/root/.moprc \
# --name mop \
# r.j3ss.co/mop
#
FROM alpine:latest
RUN apk --no-cache add \
ca-certificates
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
2016-09-12 13:58:14 +02:00
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."
2016-09-12 13:58:14 +02:00
ENTRYPOINT [ "mop" ]