Add contribution page and Docker deployment
This commit is contained in:
21
README.md
21
README.md
@@ -32,6 +32,27 @@ npm test
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Docker
|
||||
Build and run the static production app with Nginx:
|
||||
|
||||
```bash
|
||||
docker build \
|
||||
--build-arg VITE_PLIMI_REPO_URL=https://github.com/your-org/plimi \
|
||||
-t plimi:local .
|
||||
|
||||
docker run --rm -p 8080:80 --name plimi plimi:local
|
||||
```
|
||||
|
||||
Or use Docker Compose:
|
||||
|
||||
```bash
|
||||
VITE_PLIMI_REPO_URL=https://github.com/your-org/plimi PLIMI_PORT=8080 docker compose up --build
|
||||
```
|
||||
|
||||
Environment:
|
||||
- `VITE_PLIMI_REPO_URL`: build-time public repository URL shown on the Contribute page.
|
||||
- `PLIMI_PORT`: host port used by Docker Compose, default `8080`.
|
||||
|
||||
---
|
||||
|
||||
## How to Create a Tool (Plugin)
|
||||
|
||||
Reference in New Issue
Block a user