title: pipenv --system option for docker. What is the suggested way to get all the python packages in docker
body: <p>I use <code>pipenv</code> for my <code>django</code> app.</p>
  
  <pre><code>$ mkdir djangoapp &amp;&amp; cd djangoapp
  $ pipenv install django==2.1
  $ pipenv shell
  (djangoapp) $ django-admin startproject example_project .
  (djangoapp) $ python manage.py runserver
  </code></pre>
  
  <p>Now i am shifting to docker environment.</p>
  
  <p>As per my understanding <code>pipenv</code> only installs packages inside a <code>virtualenv</code></p>
  
  <p>You don't need a virtual env inside a container, docket container IS a virtual environment in itself. </p>
  
  <p>Later after going through many Dockerfile 's i found <code>--system</code> option to install in the system.</p>
  
  <p>For example the following i found:</p>
  
  <p><a href="https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/" rel="nofollow noreferrer">https://testdriven.io/blog/dockerizing-django-with-postgres-gunicorn-and-nginx/</a></p>
  
  <pre><code>COPY ./Pipfile /usr/src/app/Pipfile
  RUN pipenv install --skip-lock --system --dev
  </code></pre>
  
  <p><a href="https://hub.docker.com/r/kennethreitz/pipenv/dockerfile" rel="nofollow noreferrer">https://hub.docker.com/r/kennethreitz/pipenv/dockerfile</a></p>
  
  <pre><code># -- Install dependencies:
  ONBUILD RUN set -ex &amp;&amp; pipenv install --deploy --system
  </code></pre>
  
  <p><a href="https://wsvincent.com/beginners-guide-to-docker/" rel="nofollow noreferrer">https://wsvincent.com/beginners-guide-to-docker/</a></p>
  
  <pre><code># Set work directory
  WORKDIR /code
  
  # Copy Pipfile
  COPY Pipfile /code
  
  # Install dependencies
  RUN pip install pipenv
  RUN pipenv install --system
  </code></pre>
  
  <p>So <code>--system</code> is only sufficient or <code>--deploy --system</code> is better way. And <code>--skip-lock --system --dev</code> which is different again.</p>
  
  <p>So can some one guide how to get my environment back in my Docker</p>