Skip to content

Commit

Permalink
updated ui dockerfile to build productinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
martonsereg authored and matyix committed Jun 26, 2018
1 parent 9b2e770 commit a0f9bdd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile.ui
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
FROM golang:1.9.3-alpine3.7 as backend
ADD . /go/src/github.com/banzaicloud/telescopes
WORKDIR /go/src/github.com/banzaicloud/telescopes
RUN go build -o /bin/telescopes .
RUN go build -o /bin/productinfo ./cmd/productinfo

FROM node:9 as frontend
ADD ./ui /ui
WORKDIR /ui
ADD ./web /web
WORKDIR /web
RUN npm install
RUN npm install -g @angular/cli
RUN ng build --configuration=production --base-href=/productinfo/

FROM alpine:3.7
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
COPY --from=backend /bin/telescopes /bin
COPY --from=frontend /ui/dist/ui /ui/dist/ui
COPY --from=backend /bin/productinfo /bin
COPY --from=frontend /web/dist/ui /web/dist/ui

ENV BASEPATH "/productinfo"
ENV PRODUCTINFO_BASEPATH "/productinfo"

ENTRYPOINT ["/bin/telescopes"]
ENTRYPOINT ["/bin/productinfo"]

0 comments on commit a0f9bdd

Please sign in to comment.