mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
cleanup mop
Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
parent
2e0d29b18e
commit
605c033953
|
@ -1,12 +1,32 @@
|
|||
# Run mop-tracker in a container
|
||||
#
|
||||
# docker run -it --rm \
|
||||
# -v ~/.moprc:/root/.moprc \
|
||||
# --name mop
|
||||
# freebirdljj/mop
|
||||
FROM golang:latest
|
||||
MAINTAINER FreeBirdLjj
|
||||
# -v ~/.moprc:/root/.moprc \
|
||||
# --name mop \
|
||||
# r.j3ss.co/mop
|
||||
#
|
||||
FROM alpine:edge
|
||||
|
||||
RUN go get github.com/mop-tracker/mop && go install -x github.com/mop-tracker/mop/cmd/mop && rm -fr $GOPATH/src/github.com
|
||||
RUN apk --no-cache add \
|
||||
ca-certificates
|
||||
|
||||
ENTRYPOINT ["mop"]
|
||||
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" ]
|
||||
|
|
Loading…
Reference in New Issue
Block a user