harbor/make/dev/ui/Dockerfile

24 lines
452 B
Docker
Raw Normal View History

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
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
RUN mkdir /go/bin/harbor/
2018-03-21 06:03:49 +01:00
COPY VERSION /go/bin/harbor/UIVERSION
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