From 1d8336a9e1143fc7f952b3c5916dd70553be22b2 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Thu, 19 May 2016 03:25:02 +0300 Subject: [PATCH] add cleaning to free some space during provisioning the workspace Fixing E: You don't have enough free space in /var/cache/apt/archives/ --- workspace/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 8c7f548..6e8524d 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -42,6 +42,9 @@ RUN apt-get update && apt-get install -y \ nodejs-dev \ npm +# Clean up, to free some space +RUN apt-get clean + # Install gulp and bower with NPM RUN npm install -g \ gulp \ @@ -66,7 +69,6 @@ RUN composer.phar global require "laravel/installer" \ RUN . ~/.bashrc # Clean up -RUN apt-get autoclean && apt-get clean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* WORKDIR /var/www/laravel