harbor/make/dev/ui/Dockerfile
2018-03-21 13:03:49 +08:00

24 lines
452 B
Docker

FROM golang:1.9.2
MAINTAINER jiangd@vmware.com
COPY src/. /go/src/github.com/vmware/harbor/src
WORKDIR /go/src/github.com/vmware/harbor/src/ui
RUN go build -a -o /go/bin/harbor_ui
COPY src/ui/views /go/bin/views
COPY src/ui/static /go/bin/static
COPY src/favicon.ico /go/bin/favicon.ico
RUN mkdir /go/bin/harbor/
COPY VERSION /go/bin/harbor/UIVERSION
RUN chmod u+x /go/bin/harbor_ui
WORKDIR /go/bin/
ENTRYPOINT ["/go/bin/harbor_ui"]
EXPOSE 80