keep workspace container alive with tty

This commit is contained in:
Mahmoud Zalt 2016-05-18 06:28:31 +03:00
parent 51b6d4f844
commit 377f24fe2b
2 changed files with 4 additions and 3 deletions

View File

@ -12,6 +12,7 @@ services:
- ./logs/nginx/:/var/log/nginx
ports:
- "80:80"
- "443:443"
links:
- php-fpm
@ -132,5 +133,6 @@ services:
build: ./workspace
volumes_from:
- data
tty: true
### Add more Containers below ###############################

View File

@ -37,9 +37,8 @@ RUN curl -s http://getcomposer.org/installer | php \
&& alias composer='/usr/local/bin/composer.phar'
# Clean up
RUN rm -r /var/lib/apt/lists/*
ENTRYPOINT ["top", "-b"]
RUN apt-get clean \
&& rm -r /var/lib/apt/lists/*
WORKDIR /var/www/laravel