@@ -5,25 +5,12 @@ COPY $REMOTE_SOURCES $REMOTE_SOURCES_DIR
55COPY . /usr/src/app
66WORKDIR /usr/src/app
77
8- # bootstrap yarn so we can install and run the other tools.
98USER 0
10- ARG YARN_VERSION=v1.22.19
11- RUN CACHED_YARN=./artifacts/yarn-${YARN_VERSION}.tar.gz; \
12- if [ -f ${CACHED_YARN} ]; then \
13- npm install -g ${CACHED_YARN}; \
14- else \
15- echo "need yarn at ${CACHED_YARN}"; \
16- exit 1; \
17- fi
189
1910# use dependencies provided by Cachito
2011ENV HUSKY=0
21- RUN test -d ${REMOTE_SOURCES_DIR}/cachito-gomod-with-deps || exit 1; \
22- cp -f $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app/registry-ca.pem . \
23- && cp -f $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app/web/{.npmrc,.yarnrc,yarn.lock} web/ \
24- && source ${REMOTE_SOURCES_DIR}/cachito-gomod-with-deps/cachito.env \
25- && make install-frontend-ci \
26- && make build-frontend
12+ ENV CYPRESS_INSTALL_BINARY=0
13+ RUN make install-frontend-ci && make build-frontend
2714
2815
2916FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.22-openshift-4.17 AS go-builder
@@ -34,7 +21,7 @@ WORKDIR $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/app
3421ENV GOEXPERIMENT=strictfipsruntime
3522ENV CGO_ENABLED=1
3623
37- RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
24+ RUN source $REMOTE_SOURCES_DIR/cachito-gomod-with-deps/cachito.env \
3825 && make build-backend BUILD_OPTS="-tags strictfipsruntime"
3926
4027FROM registry.ci.openshift.org/ocp/4.17:base-rhel9
0 commit comments