add cleaning to free some space during provisioning the workspace

Fixing E: You don't have enough free space in /var/cache/apt/archives/
This commit is contained in:
Mahmoud Zalt 2016-05-19 03:25:02 +03:00
parent f0e2d83618
commit 1d8336a9e1

View File

@ -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