2016-12-15 06:06:30 +01:00
|
|
|
FROM golang:1.7.3
|
2016-05-27 10:21:32 +02:00
|
|
|
|
|
|
|
MAINTAINER jiangd@vmware.com
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y libldap2-dev \
|
|
|
|
&& rm -r /var/lib/apt/lists/*
|
2016-08-23 11:57:12 +02:00
|
|
|
|
2016-05-27 10:21:32 +02:00
|
|
|
COPY . /go/src/github.com/vmware/harbor
|
|
|
|
|
2016-10-19 08:32:00 +02:00
|
|
|
WORKDIR /go/src/github.com/vmware/harbor/src/jobservice
|
2016-05-27 10:21:32 +02:00
|
|
|
|
2016-08-11 15:30:02 +02:00
|
|
|
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"]
|