Skip to content

Commit

Permalink
Add .dockerignore file so that all node_modules files are ignored dur…
Browse files Browse the repository at this point in the history
…ing docker build. This greatly

improves performance of building an image locally.
  • Loading branch information
TheRealJon committed Apr 26, 2021
1 parent 02d9dcd commit e708cd8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/node_modules
15 changes: 15 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Dockerfile to build console image from pre-built front end.

FROM quay.io/coreos/tectonic-console-builder:v22 AS build
RUN mkdir -p /go/src/github.com/openshift/console/
ADD . /go/src/github.com/openshift/console/
WORKDIR /go/src/github.com/openshift/console/
RUN ./build-backend.sh

FROM openshift/origin-base
COPY --from=build /go/src/github.com/openshift/console/bin/bridge /opt/bridge/bin/bridge
COPY ./frontend/public/dist /opt/bridge/static
COPY ./pkg/graphql/schema.graphql /pkg/graphql/schema.graphql

USER 1001
CMD [ "/opt/bridge/bin/bridge", "--public-dir=/opt/bridge/static" ]

0 comments on commit e708cd8

Please sign in to comment.