https://github.com/croz-ltd/simple-react-server
Simple Go HTTP server for serving React based frontend applications to remove dependency on nginx
https://github.com/croz-ltd/simple-react-server
Last synced: 7 months ago
JSON representation
Simple Go HTTP server for serving React based frontend applications to remove dependency on nginx
- Host: GitHub
- URL: https://github.com/croz-ltd/simple-react-server
- Owner: croz-ltd
- Created: 2021-07-30T12:27:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T12:29:03.000Z (about 4 years ago)
- Last Synced: 2025-01-22T16:46:32.378Z (9 months ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple React Server
Simple HTTP server as a replacement for nginx docker image for serving static react frontend applications.
## Usage
Add your builded artefacts at `/var/www`. If for some reason that path is not ok for you you can override it.
## Overrides
| Attribute | Default Value | Environment Variable | Run Parameter |
|---|---|---|---|
| Bind Address | `:3000` | `BIND_ADDRESS` | `--bind-address` |
| Serve Directory | `/var/www` | `SERVE_DIRECTORY` | `--serve-directory` |### Example Dockerfile for your React application
```Dockerfile
FROM registry.dmz.croz.net/croz/simple-react-serverCOPY build /var/www
```