I'm unsure which placing the browser will stick to, but it's unlikely to generally be dependable in between browsers and versions.1 But need to have been: RUN apt-get update && apt-get -y install php5-fpm && rm -rf /var/lib/apt/lists/* In truth, is best practice to cleanup the apt/lists data files ahead of the "closing" with the RUNYou may as well