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 - ./logs/nginx/:/var/log/nginx
ports: ports:
- "80:80" - "80:80"
- "443:443"
links: links:
- php-fpm - php-fpm
@ -132,5 +133,6 @@ services:
build: ./workspace build: ./workspace
volumes_from: volumes_from:
- data - data
tty: true
### Add more Containers below ############################### ### 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' && alias composer='/usr/local/bin/composer.phar'
# Clean up # Clean up
RUN rm -r /var/lib/apt/lists/* RUN apt-get clean \
&& rm -r /var/lib/apt/lists/*
ENTRYPOINT ["top", "-b"]
WORKDIR /var/www/laravel WORKDIR /var/www/laravel