2015-11-13 19:11:28 +00:00
|
|
|
FROM golang:1.5
|
|
|
|
MAINTAINER Quentin Machu <quentin.machu@coreos.com>
|
|
|
|
|
2016-01-19 18:35:27 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y bzr rpm xz-utils && \
|
|
|
|
apt-get autoremove -y && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2015-11-13 19:11:28 +00:00
|
|
|
|
2016-01-19 18:35:27 +00:00
|
|
|
RUN mkdir /db
|
|
|
|
VOLUME /db
|
|
|
|
VOLUME /config
|
2015-11-13 19:11:28 +00:00
|
|
|
|
|
|
|
EXPOSE 6060 6061
|
|
|
|
|
2016-01-19 18:35:27 +00:00
|
|
|
ADD . /go/src/github.com/coreos/clair/
|
|
|
|
WORKDIR /go/src/github.com/coreos/clair/
|
2015-11-13 19:11:28 +00:00
|
|
|
|
|
|
|
ENV GO15VENDOREXPERIMENT 1
|
2015-12-07 21:38:50 +00:00
|
|
|
RUN go install -v github.com/coreos/clair/cmd/clair
|
2015-11-13 19:11:28 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["clair"]
|