Skip to content

Create and manage Ionic 4 apps in a Docker container

Notifications You must be signed in to change notification settings

rojasss11/ionic4-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Create running Ionic 4 container

Build container:

$ cd /[folder with Dockerfile]
$ docker build -t ionic4 .

Create alias:

$ alias ionic4='docker run -it --rm -v $PWD:/project:rw -p 8100:8100 -p 35729:35729 -p 53703:53703 --name ionic-app ionic4 ionic'

Create app:

$ cd ionic4-myapp
$ ionic4 start ionicApp

Serve app at localhost:

$ ionic4 serve

Build app:

$ ionic4 build

Other Ionic options:

$ ionic4

Working with container:

# stop container
$ docker stop ionic4
# remove container
$ docker rm ionic4
# enter container
$ docker exec -it ionic4

References https://github.com/2009/ionic3-docker#node_version

About

Create and manage Ionic 4 apps in a Docker container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 91.5%
  • Shell 8.5%