dockerfiles/mop/Dockerfile

23 lines
445 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 golang:alpine as builder
RUN apk --no-cache add \
ca-certificates \
git
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
2016-09-12 13:58:14 +02:00
RUN go get github.com/mop-tracker/mop/cmd/mop
2016-09-12 13:58:14 +02:00
FROM alpine:latest
COPY --from=builder /go/bin/mop /usr/bin/mop
2018-09-14 21:10:32 +02:00
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
ENTRYPOINT [ "mop" ]