* Redirect back to original URL if user redirected to loging screen Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> * Cover SSO cases Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Co-authored-by: Lenin Alevski <alevsk.8772@gmail.com> Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
43 lines
1007 B
Docker
43 lines
1007 B
Docker
FROM node:14 as uilayer
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./portal-ui/package.json ./
|
|
COPY ./portal-ui/yarn.lock ./
|
|
RUN yarn install
|
|
|
|
COPY ./portal-ui .
|
|
|
|
RUN make build-static
|
|
|
|
USER node
|
|
|
|
FROM golang:1.16 as golayer
|
|
|
|
RUN apt-get update -y && apt-get install -y ca-certificates
|
|
|
|
ADD go.mod /go/src/github.com/minio/console/go.mod
|
|
ADD go.sum /go/src/github.com/minio/console/go.sum
|
|
WORKDIR /go/src/github.com/minio/console/
|
|
|
|
# Get dependencies - will also be cached if we won't change mod/sum
|
|
RUN go mod download
|
|
|
|
ADD . /go/src/github.com/minio/console/
|
|
WORKDIR /go/src/github.com/minio/console/
|
|
|
|
ENV CGO_ENABLED=0
|
|
|
|
COPY --from=uilayer /app/build /go/src/github.com/minio/console/portal-ui/build
|
|
RUN go build -ldflags "-w -s" -a -o console ./cmd/console
|
|
|
|
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
|
|
MAINTAINER MinIO Development "dev@min.io"
|
|
EXPOSE 9090
|
|
|
|
|
|
COPY --from=golayer /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
COPY --from=golayer /go/src/github.com/minio/console/console .
|
|
|
|
ENTRYPOINT ["/console"]
|