I use a pretty easy docker setup that includes docker-compose and docker-sync. I have the following files:
docker-compose-dev.yml
version: "2"
services:
apache:
volumes:
- ./docker-config/vhost:/etc/apache2/sites-enabled/000-default.conf
- rr-sync:/var/www/html:nocopy # nocopy is important
volumes:
rr-sync:
external: true
docker-compose.yml
version: '2'
services:
apache:
image: bylexus/apache-php7
ports:
- 80:80
db:
image: orchardup/mysql
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: rr
docker-sync.yml
version: "2"
options:
verbose: true
syncs:
rr-sync: # tip: add -sync and you keep consistent names as a convention
src: './src'
sync_excludes: ['.git']
The image that I use is bylexus/apache-php7 and it has no support for curl nor I have a tool like vim installed in the container.
The question is, how can I install curl and vim but keep using this image for apache? What do I need to change in the files above?
Thanks.