Skip to content

Commit

Permalink
chore: remove node modules from final container (PROJQUAY-1822) (#788)
Browse files Browse the repository at this point in the history
Remove node modules needed at build time but unnecessary at run.
Remove unused Dockerfiles
  • Loading branch information
thomasmckay committed May 17, 2021
1 parent 8591caf commit 4880c77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 266 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ RUN set -ex\
; curl -fsSL https://ip-ranges.amazonaws.com/ip-ranges.json -o util/ipresolver/aws-ip-ranges.json\
;

RUN rm -Rf node_modules config_app/node_modules

EXPOSE 8080 8443 7443 9091 55443
# Don't expose /var/log as a volume, because we just configured it
# correctly above.
Expand Down
140 changes: 0 additions & 140 deletions Dockerfile.centos7.osbs

This file was deleted.

19 changes: 0 additions & 19 deletions Dockerfile.dev

This file was deleted.

3 changes: 3 additions & 0 deletions Dockerfile.osbs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ LABEL io.k8s.display-name="Red Hat Quay"
LABEL io.k8s.description="Red Hat Quay"
LABEL summary="Red Hat Quay"
LABEL maintainer="support@redhat.com"
LABEL io.openshift.tags="quay"
ENV RED_HAT_QUAY=true

ENV PYTHON_VERSION=3.8 \
Expand All @@ -76,6 +77,8 @@ COPY --from=build-gomod $REMOTE_SOURCE_DIR/app/source/jwtproxy/jwtproxy /usr/loc
COPY --from=build-gomod $REMOTE_SOURCE_DIR/app/source/config-tool/pkg/lib/editor $QUAYDIR/config_app
COPY --from=build-gomod $REMOTE_SOURCE_DIR/app/source/pushgateway/pushgateway /usr/local/bin/pushgateway

RUN rm -Rf node_modules config_app/node_modules

RUN INSTALL_PKGS="\
python38 \
nginx \
Expand Down
107 changes: 0 additions & 107 deletions Dockerfile.rhel8

This file was deleted.

0 comments on commit 4880c77

Please sign in to comment.