Merge pull request #65 from jzelinskie/fixdockerfile
dockerfile: syntax updates and s/xz/xz-utils
This commit is contained in:
commit
e650eab638
16
Dockerfile
16
Dockerfile
@ -1,16 +1,20 @@
|
|||||||
FROM golang:1.5
|
FROM golang:1.5
|
||||||
MAINTAINER Quentin Machu <quentin.machu@coreos.com>
|
MAINTAINER Quentin Machu <quentin.machu@coreos.com>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y bzr rpm xz && apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
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/*
|
||||||
|
|
||||||
RUN mkdir /db
|
RUN mkdir /db
|
||||||
VOLUME /db
|
VOLUME /db
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
|
|
||||||
EXPOSE 6060 6061
|
EXPOSE 6060 6061
|
||||||
|
|
||||||
ADD . /go/src/github.com/coreos/clair/
|
ADD . /go/src/github.com/coreos/clair/
|
||||||
WORKDIR /go/src/github.com/coreos/clair/
|
WORKDIR /go/src/github.com/coreos/clair/
|
||||||
|
|
||||||
ENV GO15VENDOREXPERIMENT 1
|
ENV GO15VENDOREXPERIMENT 1
|
||||||
RUN go install -v github.com/coreos/clair/cmd/clair
|
RUN go install -v github.com/coreos/clair/cmd/clair
|
||||||
|
Loading…
Reference in New Issue
Block a user