docker-compose pull && docker-compose build
docker-compose run --rm --user=$UID angular ng new YOUR-PROJECT-NAME --style scss --directory ./
IMPORTANT
You need to add in the package.json
file the following at the end of the script start
-> --host 0.0.0.0
docker-compose run --rm --user=$UID angular yarn install
docker-compose run --rm --user=$UID angular yarn add PACKAGE_NAME
docker-compose run --rm --user=$UID angular yarn add --dev PACKAGE_NAME
docker-compose run --rm --user=$UID angular yarn remove PACKAGE_NAME
docker-compose up
and access in localhost:4200
docker-compose run --rm --user=$UID angular ng generate component COMPONENT_NAME
It's very important to use the parameter
--user=$UID
to generate the compoent with your user and not asroot
and be able to modify it
docker-compose run --rm --user=$UID angular ng build --prod