-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated ui dockerfile to build productinfo
- Loading branch information
1 parent
9b2e770
commit a0f9bdd
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |