Skip to content

Commit

Permalink
attempt to create a smaller image by removing cabal-install after usi…
Browse files Browse the repository at this point in the history
…ng it
  • Loading branch information
thomasWeise committed Aug 11, 2020
1 parent ea89b71 commit a3b23f2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ RUN echo "Initial update." &&\
rm -rf /root/.cabal/share/man &&\
(find /root/.cabal/ -type f -empty -delete || true) &&\
(find /root/.cabal/ -type d -empty -delete || true) &&\
# remove cabal-install and dependencies
echo "Removing cabal-install and its dependencies. They are no longer needed." &&\
apt-get purge -f -y cabal-install &&\
apt-get autoremove -f -y &&\
apt-get autoclean -y &&\
# clean up all temporary files
echo "Performing more cleanup." &&\
apt-get clean -y &&\
Expand Down

0 comments on commit a3b23f2

Please sign in to comment.