FROM heroku/cedar:14

WORKDIR /app
ENV WORKSPACE_DIR=/app/support/build

RUN apt-get update
RUN apt-get install -y python-pip

RUN pip install 'bob-builder>=0.0.10' 's3cmd>=1.6.0'

ADD . /app

FROM heroku/cedar:14

WORKDIR /app
ENV WORKSPACE_DIR=/app/support/build

RUN apt-get update && apt-get install -y python-pip

RUN pip install 'bob-builder>=0.0.10' 's3cmd>=1.6.0'

ADD . /app

Fix the apt usage in the dockerfile
Fix the apt usage in the dockerfile

Due to layer caching, apt-get update would not run again when changing the list of installed packages if they are in separate layers.