mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
4c8d199b21
Signed-off-by: Jess Frazelle <acidburn@google.com>
33 lines
541 B
Docker
33 lines
541 B
Docker
# 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
|
|
|
|
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" ]
|