Created
May 4, 2020 19:45
-
-
Save jhadvig/e35939a4cecb811a701e925c1498b28e to your computer and use it in GitHub Desktop.
console-dockerfile
This file contains 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 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