Fix mint hub.docker.com builds (#7908)

This commit is contained in:
Harshavardhana
2019-07-11 11:45:57 -07:00
committed by GitHub
parent 045e1fed2b
commit 5a52bc7ff6
4 changed files with 13 additions and 9 deletions

View File

@@ -15,9 +15,11 @@
# limitations under the License.
#
export APT="apt --quiet --yes"
# remove all packages listed in remove-packages.list
xargs --arg-file=remove-packages.list apt --quiet --yes purge
apt --quiet --yes autoremove
xargs --arg-file="${MINT_ROOT_DIR}/remove-packages.list" apt --quiet --yes purge
${APT} autoremove
# remove unwanted files
rm -fr "$GOROOT" "$GOPATH/src" /var/lib/apt/lists/*