Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jhadvig/e35939a4cecb811a701e925c1498b28e to your computer and use it in GitHub Desktop.
Save jhadvig/e35939a4cecb811a701e925c1498b28e to your computer and use it in GitHub Desktop.
console-dockerfile
FROM quay.io/coreos/tectonic-console-builder:v19 AS build
RUN mkdir -p /go/src/github.com/openshift/console/
ADD . /go/src/github.com/openshift/console/
# COPY ./pkg /go/src/github.com/openshift/console/
# COPY ./vendor /go/src/github.com/openshift/console/
# COPY ./build-backend.sh /go/src/github.com/openshift/console/
WORKDIR /go/src/github.com/openshift/console/
RUN ./build-backend.sh
FROM openshift/origin-base
COPY ./frontend/public/dist /opt/bridge/static/
COPY --from=build /go/src/github.com/openshift/console/bin/bridge /opt/bridge/bin/bridge
LABEL io.k8s.display-name="OpenShift Console" \
io.k8s.description="This is a component of OpenShift Container Platform and provides a web console." \
io.openshift.tags="openshift" \
maintainer="Samuel Padgett <spadgett@redhat.com>"
# doesn't require a root user.
USER 1001
CMD [ "/opt/bridge/bin/bridge", "--public-dir=/opt/bridge/static" ]
--------
.dockerignore
# */temp*
# */*/temp*
# frontend/
/frontend/
!/frontend/public/dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment