npm install
npm run build
composer require
Build the production ready image:
docker build . -f Dockerfile.prod -t s3s4-starter
Run the production ready image:
docker run -p 3000:8080 s3s4-starter
This builds and starts the web app:
Build/Run the production ready image in (local) DEV mode:
docker-compose up
Changes to PHP / HTML / CSS in the ./public
folder will be reflected straight away.
When modifying Svelte code, remember to run npm run build
to rebuild the ./public/build
folder.
npm run dev
and copy the host and port : http://localhost:5000
docker-compose up
http://localhost:3000
http://localhost:5000