Sign inSign up

gilhardl/ionic

By gilhardl

Updated about 7 years ago

Docker image for Ionic development

Image
0

386

gilhardl/ionic repository overview

docker-ionic

Docker image for Ionic development, based on gilhardl/angular

Docker Pulls


OS

IONIC CLI ANGULAR CLI

NODE NPM YARN

PACKAGE MANAGER


Usage

With docker

Basic usage

Start CLI :

docker run -it --name ionic -v /path/to/your/project:/usr/src/app gilhardl/ionic

Start CLI and expose ports to be able to serve the app :

docker run -it --name ionic -v /path/to/your/project:/usr/src/app -p 8100:8199 -p 49153:49153 gilhardl/ionic

Serving your app :

In order to get livereload working, you'll need to define the file watching poll time to 1ms :

ionic serve -- --poll 1
Walkthrough
  1. Run Ionic container to use Ionic CLI
docker run -it --name ionic -v /path/to/your/project:/usr/src/app -p 8100:8100 -p 49153:49153 gilhardl/ionic
  1. Use Ionic CLI

Create a project :

ionic start yourapp --type=angular

? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? CSS

...

Serve your app :

ionic serve -- --poll 1

With docker-compose

Create a file named docker-compose.yml at your project root like the following :

version: '3'

services:
  app:
    container_name: yourapp-app
    build: .
    image: gilhardl/ionic
    ports:
      - 8100:8100
      - 49153:49153
    volumes:
      - .:/usr/src/app/
    command: ionic serve -- --poll 1
    restart: always

Serve your app :

docker-compose up

Licence

MIT

Tag summary

Content type

Image

Digest

Size

382.6 MB

Last updated

about 7 years ago

docker pull gilhardl/ionic