title: Can't login to Firebase (Allow Firebase to my Google Account) on Docker Image
body: <p>I'm building a <strong>Docker</strong> image with <strong>NodeJs</strong> and <strong>Firebase Tools</strong> for  <strong>a Local Development Environment</strong>.
  Since I'm in an non-interactive mode I used </p>
  
  <pre><code>firebase login:ci --interactive 
  </code></pre>
  
  <p>When running this command on my Dockerfile it retrieves me a token just fine, however when I go to the browser after signing in to my Google Account <strong><em>Localhost:9005</em></strong> doesn't seem to work</p>
  
  <blockquote>
    <p>This site can’t be reached
    localhost refused to connect.
    Search Google for localhost 9005
    ERR_CONNECTION_REFUSED</p>
  </blockquote>
  
  <p>I also tried </p>
  
  <pre><code>firebase login --no-localhost
  </code></pre>
  
  <p>but the console keeps referring me to use login:ci</p>
  
  <blockquote>
    <p>Error: Cannot run login in non-interactive mode. See login:ci to generate a token for use in non-interactive environments.</p>
  </blockquote>
  
  <p><strong>In short,</strong> I just need to <strong>Allow Firebase</strong> to my environment.<strong><code>firebase login --no-localhost</code> WON'T WORK</strong> (I've already tried it as mentioned in other threads)</p>
  
  <p>Here's my <strong>Dockerfile</strong>:</p>
  
  <pre><code>FROM node:carbon
  USER    root
  RUN     apt-get update &amp;&amp; apt-get upgrade -y
  
  # set user to avoid permission issues
  # (see https://github.com/nodejs/node-gyp/issues/1236)
  USER    node
  
  RUN     mkdir /home/node/.npm-global
  ENV     PATH=/home/node/.npm-global/bin:$PATH
  ENV     NPM_CONFIG_PREFIX=/home/node/.npm-global
  
  RUN     npm install -g firebase-tools
  
  # Logging in to Firebase
  # RUN     firebase login --no-localhost
  RUN     firebase login:ci --interactive
  
  # Initialising Firebase Project
  RUN     firebase init hosting \
  &amp;&amp;  firebase init functions \
  &amp;&amp;  cd functions/ \
  &amp;&amp;  npm i express --save \
  &amp;&amp;  cd .. \
  &amp;&amp;  ls
  </code></pre>
  
  <p>Check some Screenshots:</p>
  
  <p><img src="https://i.stack.imgur.com/Tozhr.jpg" alt="Link to Image - #1 step"></p>
  
  <p><img src="https://i.stack.imgur.com/OzCSc.jpg" alt="Link to Image - #2 step"></p>
  
  <p><img src="https://i.stack.imgur.com/BeGE7.jpg" alt="Link to Image - #3 step"></p>