Put frequently changed commands at end
RUN apt-get install -y --no-install-recommends && unzip \ wget && \ rm -rf /var/lib/apt-lists/* && \ apt-get purge --auto-remove && \ apt-get clean
Use intermediate container to build some artifact and copy only ready artifact to final image.