tomahim / Docker-React-Nginx

Docker Compose with Linux Alpine + Nginx + Yarn & NPM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Docker

Dependencies

Base image

  • mhart/alpine-node:8

Docker Compose

  • Nginx
  • React

Process controller

React Build

  • Place your all project files in src directory and run
  • docker-compose exec nginx-react [npm or yarn] install [--no-bin-links if use npm]
  • All builded files must place in www

Run

  • docker-compose up -d

Stop

  • docker-compose down

use Supervisor to control process

use npm or yarn in container

  • docker-compose exec nginx-react [npm, yarn] [command] [package] [--no-bin-links if use npm]

About

Docker Compose with Linux Alpine + Nginx + Yarn & NPM


Languages

Language:Dockerfile 66.4%Language:HTML 33.6%