Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 1015 Bytes

readme.md

File metadata and controls

32 lines (27 loc) · 1015 Bytes

Node environment

Docker environment with node 16 for Symfony/Laravel (based on official node docker hub repository).

Source code

Requirements

  • Docker version 18.06 or later
  • Docker compose version 1.22 or later

Integration to your environment

  1. 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
  1. Copy necessary rows from Makefile(which are commented) to your Makefile
  2. Build and run the project

Additional info:

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.

Links