Created
June 14, 2017 12:19
-
-
Save akz92/286059e8c7bdada39649bbe49005d11c to your computer and use it in GitHub Desktop.
Ionic 2 Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ionic 2 developer environment based on Saddey's Dockerfile | |
# See https://blog.saddey.net/2016/07/03/jump-start-into-angular-2-and-ionic-2 | |
FROM ubuntu:16.04 | |
MAINTAINER Lucas Moulin <[email protected]> | |
LABEL Description="Interactive Ionic 2 Framework example using volume /projects as the root for your app directories" | |
RUN apt-get update | |
RUN apt-get install -y -q \ | |
curl | |
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - | |
# nodejs includes matching npm as well | |
RUN apt-get install -y -q \ | |
nodejs \ | |
&& apt-get -y autoclean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN npm install -g -y ionic | |
RUN echo '1. Run ineractively and map the /projects volume to your host, e.g. docker run -it -v /Users/<host_path>:/projects <image>' > /readme.txt | |
RUN echo '2. ionic start myFirstIonic2App sidemenu --ts ### --ts selects TypeScript' >> /readme.txt | |
RUN echo '3. cd myFirstIonic2App' >> /readme.txt | |
RUN echo '4. ionic serve --all' >> /readme.txt | |
RUN echo 'cd /projects' > /start.sh | |
RUN echo 'cat /readme.txt' >> /start.sh | |
WORKDIR /projects | |
CMD bash -C '/start.sh';'bash' | |
EXPOSE 8100 35729 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment