title: python cannot load en_core_web_lg module in azure app service with docker image
body: <p>I have a flask python app that uses a spacy model (md or lg).  I am running in a docker container in VSCode and all work correctly on my laptop.</p>
  <p>When I push the image to my azure container registry the app restarts but it doesn't seem to get past this line in the log:</p>
  <blockquote>
  <p>Initiating warmup request to the container.</p>
  </blockquote>
  <p>If I comment out the line <code>nlp = spacy.load('en_core_web_lg')</code>, the website loads fine (of course it doesn't work as expected).</p>
  <p>I am installing the model in the docker file after installing the requirements.txt:
  <code>RUN python -m spacy download en_core_web_lg</code>.</p>
  <p>Docker file:</p>
  <pre><code>FROM python:3.6
  EXPOSE 5000
  
  # Keeps Python from generating .pyc files in the container
  ENV PYTHONDONTWRITEBYTECODE 1
  
  # Turns off buffering for easier container logging
  ENV PYTHONUNBUFFERED 1
  
  # steps needed for scipy
  RUN apt-get update -y
  RUN apt-get install -y python-pip python-dev libc-dev build-essential
  RUN pip install -U pip
  
  # Install pip requirements
  ADD requirements.txt.
  RUN python -m pip install -r requirements.txt
  RUN python -m spacy download en_core_web_md
  
  WORKDIR /app
  ADD . /app
  
  # During debugging, this entry point will be overridden. For more information, refer to https://aka.ms/vscode-docker-python-debug
  CMD [&quot;gunicorn&quot;, &quot;--bind&quot;, &quot;0.0.0.0:5000&quot;, &quot;Application.webapp:app&quot;]
  </code></pre>