Docker environment with node 16 for Symfony/Laravel (based on official node docker hub repository).
- Docker version 18.06 or later
- Docker compose version 1.22 or later
- Add next service to your docker-compose.yml:
node:
  image: systemsdk/node
  platform: linux/x86_64
  user: node
  container_name: node
  expose:
    - "8081"
  volumes:
    - ./:/var/www/html:delegated
  command: npm run watch- Copy necessary rows from Makefile(which are commented) to your Makefile
- Build and run the project
Based on the popular Alpine Linux project. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.