Skip to content

Commit 377f24f

Browse files
committed
keep workspace container alive with tty
1 parent 51b6d4f commit 377f24f

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- ./logs/nginx/:/var/log/nginx
1313
ports:
1414
- "80:80"
15+
- "443:443"
1516
links:
1617
- php-fpm
1718

@@ -132,5 +133,6 @@ services:
132133
build: ./workspace
133134
volumes_from:
134135
- data
136+
tty: true
135137

136138
### Add more Containers below ###############################

workspace/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ RUN curl -s http://getcomposer.org/installer | php \
3737
&& alias composer='/usr/local/bin/composer.phar'
3838

3939
# Clean up
40-
RUN rm -r /var/lib/apt/lists/*
41-
42-
ENTRYPOINT ["top", "-b"]
40+
RUN apt-get clean \
41+
&& rm -r /var/lib/apt/lists/*
4342

4443
WORKDIR /var/www/laravel
4544

0 commit comments

Comments
 (0)