Body: <p>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.</p>
  <pre><code>FROM node:20
  RUN wget -O firefox.tar.bz2 &quot;https://download.mozilla.org/?product=firefox-latest&amp;os=linux64&amp;lang=en-US&quot; --no-check-certificate
  RUN tar -xvf firefox.tar.bz2
  RUN sudo mv firefox/* /usr/bin/
  </code></pre>
  <p>Jenkinsfile looks like this, no extra arguments</p>
  <pre><code>def dockerImage = docker.build(&quot;build-image:${env.BUILD_ID}&quot;, &quot;--build-arg DOCKER_UNAME=${env.DOCKER_UNAME} --build-arg DOCKER_UID=${env.DOCKER_UID} --build-arg DOCKER_GID=${env.DOCKER_GID} -f Dockerfile .&quot;)
  </code></pre>
  
Comments: CC BY-SA 4.0
Comments: 2024-07-09T07:35:08.080Z
Comments: Welcome to DevOps! Can you mention the image used in your Dockerfile?? [Edit](https://devops.stackexchange.com/posts/19441/edit) your question to add that info.
Comments: Ajay
Comments: CC BY-SA 4.0
Comments: 2024-07-09T09:45:02.483Z
Comments: @Ajay just using node:20 and these steps
Comments: Manav Grover
Comments: CC BY-SA 4.0
Comments: 2024-07-10T06:33:43.450Z
Comments: I tried your Dockerfile with some minor changes so that my container won't stop. The Firefox browser is installed inside the container and I guess the issue will be with your CI. Can you provide any logs in your Jenkins CI which can be used to know the steps that are being taken place??
Comments: Ajay
Tags: <docker><jenkins><jenkins-pipeline><dockerfile><jenkinsfile>
Title: Intermittent Firefox Installation Failure in Docker CI
UserDisplayName: Manav Grover
ThreadText: # Intermittent Firefox Installation Failure in Docker CI
  
  (Asked by: username_0 on 2024-07-09)
  
  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:20
  RUN wget -O firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US" --no-check-certificate
  RUN tar -xvf firefox.tar.bz2
  RUN 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 .")
  
  ```
  
  **Tags:** docker, jenkins, jenkins-pipeline, dockerfile, jenkinsfile
  
  > **Comments:**
  > **username_1**: Welcome to DevOps! Can you mention the image used in your Dockerfile?? [Edit](https://devops.stackexchange.com/posts/19441/edit) your question to add that info.  
  > **username_0**: @username_1 just using node:20 and these steps  
  > **username_1**: I tried your Dockerfile with some minor changes so that my container won't stop. The Firefox browser is installed inside the container and I guess the issue will be with your CI. Can you provide any logs in your Jenkins CI which can be used to know the steps that are being taken place??  
  
  ---
  
  ## 0 answers
  
  