#
# This is the integrated Origin Web Console Server. It is configured to
# publish metadata to OpenShift to provide automatic management of images on push.
#
FROM registry.fedoraproject.org/f28/origin-base:latest

ENV NAME=origin-web-console \
    VERSION=3.9 \
    ARCH=x86_64

RUN INSTALL_PKGS="origin-web-console" && \
    dnf install -y ${INSTALL_PKGS} && \
    rpm -V ${INSTALL_PKGS} && \
    dnf clean all

LABEL io.k8s.display-name="OpenShift Web Console" \
      io.k8s.description="This is a component of OpenShift Container Platform and provides a web console." \
      io.openshift.tags="openshift" \
      maintainer="Jakub Cajka <jcajka@fedoraproject.org>" \
      License="GPLv2+" \
      name="$FGC/$NAME" \
      com.redhat.component="$NAME" \
      version="$VERSION" \
      architecture="$ARCH" \
      usage="Image used for deployment of openshift origin"

COPY README.md README.md

# doesn't require a root user.
USER 1001
EXPOSE 5000

CMD [ "/usr/bin/origin-web-console" ]
