This file contains 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
docker build -t orlando1409/to-do-app . |
This file contains 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
#==================== Building Stage ================================================ | |
# Create the image based on the official Node 8.9.0 image from Dockerhub | |
FROM node:8.9.0 as node | |
# Create a directory where our app will be placed. This might not be necessary | |
RUN mkdir -p /to-do-app | |
# Change directory so that our commands run inside this new directory | |
WORKDIR /to-do-app |
This file contains 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
mkdir vue-docker | |
cd vue-docker | |
git clone https://github.com/orlando-c-h/vue-to-do-app | |
cd to-do-app | |
yarn install | |
ng build | |
code . |
This file contains 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
mkdir react-docker | |
cd react-docker | |
git clone https://github.com/orlando-c-h/react-to-do-app | |
cd react-to-do-app | |
yarn install | |
yarn build | |
code . |
This file contains 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
mkdir ng-docker | |
cd ng-docker | |
git clone https://github.com/orlando-c-h/to-do-app | |
cd to-do-app | |
yarn install | |
ng build | |
code . |
This file contains 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
server { | |
listen 80; | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
try_files $uri $uri/ /index.html =404; | |
} | |
} |
This file contains 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
#excluding the node_modules directory and the .git directory | |
node_modules/ | |
.git/ |
This file contains 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
#==================== Building Stage ================================================ | |
# Create the image based on the official Node 8.9.0 image from Dockerhub | |
FROM node:8.9.0 as node | |
# Create a directory where our app will be placed. This might not be necessary | |
RUN mkdir -p /to-do-app | |
# Change directory so that our commands run inside this new directory | |
WORKDIR /to-do-app |
This file contains 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
<app-to-do></app-to-do> |
This file contains 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
//zones can be entirely bypassed by bootstrapping the app with 'noop' | |
platformBrowserDynamic() | |
.bootstrapModule(AppModule, {ngZone: 'noop'}) | |
.then( ref => {} ); |