forked from red-hat-storage/mcg-ms-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.prod
24 lines (20 loc) · 839 Bytes
/
Dockerfile.prod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry-proxy.engineering.redhat.com/rh-osbs/rhacm2-yarn-builder:v2.3.0_14-1.20210810163126 AS builder
ARG TARGET_BRANCH=master
RUN dnf install -y git
RUN git clone https://github.com/red-hat-storage/mcg-ms-console.git
WORKDIR /mcg-ms-console
RUN git fetch origin ${TARGET_BRANCH} && git checkout origin/${TARGET_BRANCH}
RUN yarn install --prod=false
RUN yarn build
RUN mv ./dist ../app
FROM registry.access.redhat.com/ubi8/nginx-118
ADD default.conf "${NGINX_CONFIGURATION_PATH}"
COPY --from=builder /app .
CMD /usr/libexec/s2i/run
LABEL maintainer="Sanjal Katiyar <skatiyar@redhat.com>"
LABEL name="mcg-ms-console"
LABEL version=""
LABEL description="Data Federation console container"
LABEL summary="Provides the latest console for Data Federation."
LABEL io.k8s.display-name="MCG-MS Console"
LABEL io.openshift.tags="mcg-ms"