I have a docker image to install firefox, that runs as expected locally but fails intermittently on CI. Firefox doesn't get installed, this is what I am doing.
FROM node:20RUN wget -O firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" --no-check-certificateRUN tar -xvf firefox.tar.bz2RUN sudo mv firefox/* /usr/bin/
Jenkinsfile looks like this, no extra arguments
def dockerImage = docker.build("build-image:${env.BUILD_ID}", "--build-arg DOCKER_UNAME=${env.DOCKER_UNAME} --build-arg DOCKER_UID=${env.DOCKER_UID} --build-arg DOCKER_GID=${env.DOCKER_GID} -f Dockerfile .")