Skip to content

Commit

Permalink
Remove python3 and node headers from Dockerfile.product
Browse files Browse the repository at this point in the history
After removing node-sass, we should no longer need node-gyp.
  • Loading branch information
spadgett committed Nov 17, 2021
1 parent 0e4702d commit 08c4796
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile.product
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,16 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-8-base-nodejs-openshift-4.10 AS
ADD . .

USER 0
# required for node-gyp
RUN yum install -y python3
# extract the yarn dependencies that must be provided in the dist-git lookaside cache
RUN tar fx yarn-offline.tar

# bootstrap yarn so we can install and run the other tools.
RUN container-entrypoint npm install ./yarn-1.9.4.tgz

# prevent download of chromedriver, geckodriver, cypress binary, and node headers as part of module installs
# prevent download of chromedriver, geckodriver, and the cypress binary as part of module installs
ENV CHROMEDRIVER_SKIP_DOWNLOAD=true \
GECKODRIVER_SKIP_DOWNLOAD=true \
CYPRESS_INSTALL_BINARY=0 \
NPM_CONFIG_TARBALL=$HOME/node-v14.16.0-headers.tar.gz
CYPRESS_INSTALL_BINARY=0

# run the build
RUN container-entrypoint ./build-frontend.sh
Expand Down

0 comments on commit 08c4796

Please sign in to comment.