Skip to content

Remove superfluous packages from ubuntu based docker image

J0WI requested to merge J0WI/gitlab-runner:patch-4 into master

What does this MR do?

  • removes apt-get upgrade
  • removes several superfluous packages:
    • krb5-locales
    • less
    • libbsd0
    • libedit2
    • libsasl2-modules
    • libx11-6
    • libx11-data
    • libxau6
    • libxcb1
    • libxdmcp6
    • libxext6
    • libxmuu1
    • nano
    • netbase
    • openssh-client
    • patch
    • publicsuffix
    • vim
    • vim-common
    • vim-runtime
    • xauth
    • xxd

Why was this MR needed?

https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get

Why are there any editors in a container?

Are there points in the code the reviewer needs to double check?

Double check that the removed dependencies are not required.

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased
Edited by Steve Xuereb

Merge request reports