mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 00:27:44 +01:00
20 lines
572 B
Docker
20 lines
572 B
Docker
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/*
|
|
COPY . /go/src/github.com/vmware/harbor
|
|
|
|
WORKDIR /go/src/github.com/vmware/harbor/jobservice
|
|
|
|
RUN go get -d github.com/docker/distribution \
|
|
&& go get -d github.com/docker/libtrust \
|
|
&& go get -d github.com/go-sql-driver/mysql \
|
|
&& go build -v -a -o /go/bin/harbor_jobservice \
|
|
&& chmod u+x /go/bin/harbor_jobservice
|
|
ADD ./jobservice/conf /go/bin/conf
|
|
WORKDIR /go/bin/
|
|
ENTRYPOINT ["/go/bin/harbor_jobservice"]
|