title: how to make docker build run python manage.py migrate
body: <p>I'm very new to docker, am trying to use it with Django, here is my <strong>DockerFile</strong> :</p>
  
  <pre><code>FROM python:3.6
  
  RUN mkdir /app
  WORKDIR /app
  
  ADD . /app/
  
  
  ENV PYTHONUNBUFFERED 1
  ENV LANG C.UTF-8
  ENV DEBIAN_FRONTEND=noninteractive
  
  
  ENV PORT=8000
  
  
  RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends \
          tzdata \
          python3-setuptools \
          python3-pip \
          python3-dev \
          python3-venv \
          git \
          &amp;&amp; \
      apt-get clean &amp;&amp; \
      rm -rf /var/lib/apt/lists/*
  
  
  
  
  RUN pip3 install --upgrade pip
  RUN pip3 install pipenv
  
  
  RUN pip install -r requirements.txt &amp;&amp; python manage.py migrate
  
  
  
  EXPOSE 8888
  CMD gunicorn g_attend.wsgi:application --bind 0.0.0.0:$PORT
  </code></pre>
  
  <p>it works normally but it never does the migrations, any help?</p>
  
  <p><strong>Note</strong> Pardon me if the question is a beginner question, it is my 1st time with docker and can't find clear documentation for Docker/Django </p>