Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70434

Dockerizing ionic application

$
0
0

Hi, I am new to DevOps culture
I am trying to dockerize and run my ionic sample application using ionic serve command …I have created a docker file and docker-compose file
image is created for my application but when I build using docker-compose I am getting an error

dockerfile
FROM node:12.16.3

WORKDIR Home/Documents/xxxx/ionic

//Install Ionic and Cordova
RUN npm i -g ionic cordova

//Show ionic cli command
ENTRYPOINT [“ionic”]
CMD [“serve”, “8100”]

docker-compose file
app:
build: .
ports:
- ‘8100:8100’
- ‘35729:35729’
volumes:
- .:Home/Documents/xxxx/ionic
- Home/Documents/xxxx/ionic/node_modules
command: ionic serve --all

I will be thankful if anyone corrects/guide my mistakes or help me with the flow
I am using Ubuntu v18.04, ionic v5.4.16 and node v12.16.3

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>