https://github.com/ganchdev/docker-react-app
Testing out deployments with docker
https://github.com/ganchdev/docker-react-app
Last synced: 9 months ago
JSON representation
Testing out deployments with docker
- Host: GitHub
- URL: https://github.com/ganchdev/docker-react-app
- Owner: ganchdev
- Created: 2020-12-23T17:24:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-24T00:02:46.000Z (over 5 years ago)
- Last Synced: 2025-01-21T17:48:43.799Z (over 1 year ago)
- Language: JavaScript
- Size: 186 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started with Create React App in Docker
### Dev
```
docker build -f Dockerfile.dev .
docker run -it -p 3000:3000 -v /app/node_modules -v $(pwd):/app
```
for tests use docker-compose:
```
docker-compose up --build
docker-compose down
```
### Prod with Nginx
```
docker build .
docker run -p 8080:80
```