2016-05-27 10:21:32 +02:00
|
|
|
FROM golang:1.6.2
|
|
|
|
|
|
|
|
MAINTAINER jiangd@vmware.com
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libldap2-dev \
|
|
|
|
&& rm -r /var/lib/apt/lists/*
|
|
|
|
RUN go get -d github.com/docker/distribution \
|
|
|
|
&& go get -d github.com/docker/libtrust \
|
2016-07-22 10:01:19 +02:00
|
|
|
&& go get -d github.com/go-sql-driver/mysql
|
|
|
|
|
|
|
|
COPY . /go/src/github.com/vmware/harbor
|
|
|
|
WORKDIR /go/src/github.com/vmware/harbor/jobservice
|
|
|
|
RUN go build -v -a -o /go/bin/harbor_jobservice \
|
2016-05-27 10:21:32 +02:00
|
|
|
&& chmod u+x /go/bin/harbor_jobservice
|
|
|
|
WORKDIR /go/bin/
|
|
|
|
ENTRYPOINT ["/go/bin/harbor_jobservice"]
|