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