title: install mongoose in docker container
body: <p>I am trying to dockerize my node.js application. I created a Dockerfile, below are the contents of Dockerfile</p>
  
  <pre><code># Official node base image
  FROM node:0.12
  
  # Bundle app source
  COPY . /src
  
  RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends libkrb5-dev supervisor \
      &amp;&amp; cd /src \
      &amp;&amp; npm install \
      &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  # copy the supervisor conf file
  COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
  
  # Exclude npm cache from the image
  VOLUME /root/.npm
  
  # expose environment variable
  EXPOSE 3300
  
  # start supervisor
  CMD ["/usr/bin/supervisord"]
  </code></pre>
  
  <p>but while running the npm install command I see following warnings in the logs</p>
  
  <pre><code>&gt; kerberos@0.0.14 install /rate-my-ride-users-api/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
  &gt; (node-gyp rebuild) || (exit 0)
  
  make: Entering directory '/rate-my-ride-users-api/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
    CXX(target) Release/obj.target/kerberos/lib/kerberos.o
    CXX(target) Release/obj.target/kerberos/lib/worker.o
    CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
  ../lib/kerberosgss.c:27:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
   #pragma clang diagnostic push
   ^
  ../lib/kerberosgss.c:28:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
   #pragma clang diagnostic ignored "-Wdeprecated-declarations"
   ^
  ../lib/kerberosgss.c: In function 'authenticate_gss_client_wrap':
  ../lib/kerberosgss.c:348:19: warning: variable 'server_conf_flags' set but not used [-Wunused-but-set-variable]
     char buf[4096], server_conf_flags;
                     ^
  ../lib/kerberosgss.c: At top level:
  ../lib/kerberosgss.c:687:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
   #pragma clang diagnostic pop
  </code></pre>
  
  <p>I am banging my head on the wall since 12 hours, I almost searched everything on the internet, but I am not able to find out the reason why this is happening. Somewhere I read that I need <code>libkrb5-dev</code> package so I installed that package also but still the problem continues.</p>
  
  <p>Can anyone explain to me what is happening here ? and how I can resolve this ?</p>