Created
July 10, 2018 17:45
-
-
Save cfcosta/76c399e1e7df0fa803ca7439cc927b75 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
FROM golang:alpine as golang-builder | |
ADD kiali /go/src/github.com/kiali/kiali | |
WORKDIR /go/src/github.com/kiali/kiali | |
RUN apk add make bash git && make build | |
FROM node:8-alpine as node-builder | |
ADD kiali-ui /opt/kiali-ui | |
WORKDIR /opt/kiali-ui | |
RUN apk update && apk add git && npm install -g yarn && yarn install && yarn build && ls -lah . | |
FROM centos:centos7 | |
LABEL maintainer="[email protected]" | |
ENV KIALI_HOME=/opt/kiali \ | |
PATH=$KIALI_HOME:$PATH | |
COPY --from=golang-builder /go/bin/kiali $KIALI_HOME/ | |
COPY --from=node-builder /opt/kiali-ui/build/* $KIALI_HOME/console/ | |
RUN ls $KIALI_HOME | |
RUN ls $KIALI_HOME/console | |
ENTRYPOINT ["/opt/kiali/kiali"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment