title: Docker not saving ouput to file
body: <p>Originally posted <a href="https://stackoverflow.com/questions/52031907/docker-not-saving-file-on-keyboardinterrupt">this</a> on the subject. After answer the csv was saving to the indicated directory. Now it'll create a new directory(/data) but the csv isn't there. I'm not sure why this is no longer working. Without the docker the python script runs as intended.</p>
  
  <p>Commands I'm running:</p>
  
  <pre><code>docker build -t dock ./search_api
  docker run -v ~/twitter-data/data:/app/ dock
  </code></pre>
  
  <p>And getting the following ouput:</p>
  
  <pre><code>Downloaded 220 tweets, Saved to /search/tweets.csv
  </code></pre>
  
  <p>Here is the Dockerfile</p>
  
  <pre><code># Use an official Python runtime as a parent image
  FROM python:3.6-slim
  
  # Set the working directory to /app
  WORKDIR /search
  
  # Copy the current directory contents into the container at /app
  ADD . /search
  
  # Install any needed packages specified in requirements.txt
  RUN pip install --trusted-host pypi.python.org -r requirements.txt
  
  # Run app.py when the container launches
  CMD ["python", "search.py"]
  </code></pre>
  
  <p>Search.py is appending to tweets.csv</p>