Official image on dockerhub can be found here adamino/ionic
This project serves a Ionic 4 ready development environment, based on openjdk 8 with Android SDK 8, Node 10 and the latest Ionic
When you start a new Ionic project, you might not initially feel the need for more than node and a couple of packages... However when you become ready to release the app, you're suddenly going to need a bit more in your "path"!
That's why I've created this image, which serves as a complete development environment for developing and releasing Ionic apps!
In order to utilize this image, you only need to have the latest version of docker installed!
- Node: 10.16.3
- Ionic: latest
- cordova: latest
- cordova-res: latest
- firebase-tools: latest
- ${NODE_VERSION}-
${BUILD_VERSION} - e.g. 10.16.3-3
- Download the docker-compose file to the root of your Ionic project.
- Run the following command
docker compose-up
This way you will see the output of the container. The app will be served at localhost:8100
If you want to run the container without seeing the output simply run:
docker-compose up -d
If you want to attach a shell execute the the following command:
docker exec -it {NameOfYouContainer} /bin/sh
E.g.
docker exec -it myAwesomeApp_ionic_1 /bin/sh