-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 697 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk add --no-cache ca-certificates
COPY . /go/src/github.com/docker/opensource
ENV GO111MODULE=off
RUN buildDeps=' \
go \
git \
gcc \
libc-dev \
libgcc \
' \
set -x \
&& apk update \
&& apk add $buildDeps \
&& cd /go/src/github.com/docker/opensource \
&& go get github.com/BurntSushi/toml \
&& go get github.com/sirupsen/logrus \
&& go generate ./maintainercollector \
&& go build -o /usr/bin/maintainercollector ./maintainercollector \
&& apk del $buildDeps \
&& rm -rf /var/cache/apk/* \
&& rm -rf /go \
&& echo "Build complete."
WORKDIR /root/maintainers
ENTRYPOINT [ "maintainercollector" ]