2018-02-27 08:01:14 +01:00
|
|
|
FROM golang:1.9.2
|
2016-02-01 12:59:10 +01:00
|
|
|
|
2016-02-17 04:27:23 +01:00
|
|
|
MAINTAINER jiangd@vmware.com
|
|
|
|
|
2016-10-19 08:32:00 +02:00
|
|
|
COPY src/. /go/src/github.com/vmware/harbor/src
|
|
|
|
WORKDIR /go/src/github.com/vmware/harbor/src/ui
|
2016-02-01 12:59:10 +01:00
|
|
|
|
2018-02-27 08:01:14 +01:00
|
|
|
RUN go build -a -o /go/bin/harbor_ui
|
2016-02-01 12:59:10 +01:00
|
|
|
|
2016-10-19 08:32:00 +02:00
|
|
|
COPY src/ui/views /go/bin/views
|
|
|
|
COPY src/ui/static /go/bin/static
|
|
|
|
COPY src/favicon.ico /go/bin/favicon.ico
|
2016-02-01 12:59:10 +01:00
|
|
|
|
2017-04-16 14:44:19 +02:00
|
|
|
RUN mkdir /go/bin/harbor/
|
2018-03-21 06:03:49 +01:00
|
|
|
COPY VERSION /go/bin/harbor/UIVERSION
|
2017-04-16 14:44:19 +02:00
|
|
|
|
2017-03-20 11:51:20 +01:00
|
|
|
RUN chmod u+x /go/bin/harbor_ui
|
2016-02-01 12:59:10 +01:00
|
|
|
|
|
|
|
WORKDIR /go/bin/
|
2016-04-07 12:34:12 +02:00
|
|
|
ENTRYPOINT ["/go/bin/harbor_ui"]
|
2016-02-01 12:59:10 +01:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|