shankarjp / Docker_Project3

Creating a Production Workflow, dockerising a React application and hosting using Nginx, Continuous Integration with Travis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Project 3

Starting Development Server

Using Dockerfile

docker build -f Dockerfile.dev .
docker run -it -p 3000:3000 -v /app/node_modules -v $(pwd):/app <imageid>

Using Docker Compose

docker-compose up

Executing Tests

docker run -it <imageid> npm run test
docker-compose up
docker exec -it <containerid> npm run test

Starting Production Application

docker build .
docker run -it -p 3000:80 <imageid>

About

Creating a Production Workflow, dockerising a React application and hosting using Nginx, Continuous Integration with Travis


Languages

Language:JavaScript 39.5%Language:HTML 36.9%Language:CSS 19.9%Language:Dockerfile 3.7%