Heroku container:push always re-installs conda packages

I’ve followed the python-miniconda tutorial offered by Heroku in order to create my own ML server on Python, which utilizes Anaconda and its packages.

Everything seems to be in order, however each time I wish to update the scripts located at /webapp by entering

  • How to make my docker run on a specified linux kernel version?
  • Neo4j - Java heap space. Wrong query or settings?
  • supervisord: is it possible to redirect subprocess stdout back to supervisord?
  • What benefits does the Marathon package bring to DC/OS?
  • Is there a way to make the Docker Splunk Driver send the EC2 Instance Id to Splunk when it runs on the AWS EC2 Container Service (ECS)?
  • Request Entity Too Large - NextCloud in Docker
  • heroku container:push

    A complete re-installation of the pip (or rather, Conda) dependencies is performed, which takes quite some time and seems illogical to me. My understanding of both Docker and Heroku frameworks is very shaky, so I haven’t been able to find a solution which allows me to push ONLY my code while leaving the container as is without (re?)uploading an entire image.


    FROM heroku/miniconda
    ADD ./webapp/requirements.txt /tmp/requirements.txt
    RUN pip install -qr /tmp/requirements.txt
    ADD ./webapp /opt/webapp/ 
    WORKDIR /opt/webapp
    RUN conda install scikit-learn  
    RUN conda install opencv
    CMD gunicorn --bind$PORT wsgi

  • marathon docker jobs hanged in deployment state
  • Self-hosted alternative to hub.docker.com?
  • hyperkube gets stuck while trying to start the API server
  • Certificate errors after changing docker location on windows
  • how to securely connect to a mysql server running on a virtual machine
  • Php development inside docker on ubuntu 16.04 for cpanel shared hosting with some addon domain on it
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.