Cleans up temp files and runs apt-get clean after installs

This commit is contained in:
Patrick McDonagh
2017-05-03 10:52:25 -05:00
parent bdae9f2f12
commit 6c6de8b3d6

View File

@@ -12,4 +12,7 @@ RUN mongod --fork --logpath=/var/log/mongodb.log && sleep 5 && mongo < /tmp/setu
COPY mongod.conf /etc/mongod.conf
EXPOSE 27107
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
CMD ["/usr/bin/mongod"]