From 377f24fe2b92842b67d6cad45fec24b37759b4af Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Wed, 18 May 2016 06:28:31 +0300 Subject: [PATCH] keep workspace container alive with tty --- docker-compose.yml | 2 ++ workspace/Dockerfile | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bd8d26cf..eb1f0c79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 ############################### diff --git a/workspace/Dockerfile b/workspace/Dockerfile index c93c7f64..9223b2ca 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -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